C# Класс MyTested.AspNetCore.Mvc.ServiceCollectionHttpExtensions

Contains HTTP extension methods for IServiceCollection.
Показать файл Открыть проект

Открытые методы

Метод Описание
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