C# 클래스 MyTested.AspNetCore.Mvc.ServiceCollectionHttpExtensions

Contains HTTP extension methods for IServiceCollection.
파일 보기 프로젝트 열기: ivaylokenov/MyTested.AspNetCore.Mvc

공개 메소드들

메소드 설명
AddHttpContextAccessor ( this serviceCollection ) : IServiceCollection

Adds IHttpContextAccessor with singleton scope to the service collection.

AddStringInputFormatter ( this serviceCollection ) : IServiceCollection

Adds an IInputFormatter which can process "text/plain" media type. Useful for testing with HTTP request body.

메소드 상세

AddHttpContextAccessor() 공개 정적인 메소드

Adds IHttpContextAccessor with singleton scope to the service collection.
public static AddHttpContextAccessor ( this serviceCollection ) : IServiceCollection
serviceCollection this Instance of type.
리턴 IServiceCollection

AddStringInputFormatter() 공개 정적인 메소드

Adds an IInputFormatter which can process "text/plain" media type. Useful for testing with HTTP request body.
public static AddStringInputFormatter ( this serviceCollection ) : IServiceCollection
serviceCollection this Instance of type.
리턴 IServiceCollection