Class HttpInteractionHandlerServiceCollectionExtensions
public static class HttpInteractionHandlerServiceCollectionExtensions
- Inheritance
-
HttpInteractionHandlerServiceCollectionExtensions
- Inherited Members
Methods
AddHttpInteractionHandler(IServiceCollection, Delegate)
Adds an IHttpInteractionHandler to the specified IServiceCollection.
public static IServiceCollection AddHttpInteractionHandler(this IServiceCollection services, Delegate handler)
Parameters
servicesIServiceCollectionThe IServiceCollection to add the IHttpInteractionHandler to.
handlerDelegateThe delegate that represents the handler.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.
AddHttpInteractionHandler<T>(IServiceCollection)
Adds an IHttpInteractionHandler to the specified IServiceCollection.
public static IServiceCollection AddHttpInteractionHandler<T>(this IServiceCollection services) where T : class, IHttpInteractionHandler
Parameters
servicesIServiceCollectionThe IServiceCollection to add the IHttpInteractionHandler to.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.
Type Parameters
TThe type of the IHttpInteractionHandler to add.
AddHttpInteractionHandler<T>(IServiceCollection, Func<IServiceProvider, T>)
Adds an IHttpInteractionHandler to the specified IServiceCollection.
public static IServiceCollection AddHttpInteractionHandler<T>(this IServiceCollection services, Func<IServiceProvider, T> implementationFactory) where T : class, IHttpInteractionHandler
Parameters
servicesIServiceCollectionThe IServiceCollection to add the IHttpInteractionHandler to.
implementationFactoryFunc<IServiceProvider, T>The factory that creates the IHttpInteractionHandler.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.
Type Parameters
TThe type of the IHttpInteractionHandler to add.
AddHttpInteractionHandlers(IServiceCollection, Assembly)
Adds all public IHttpInteractionHandler implementations from the specified assembly to the IServiceCollection.
public static IServiceCollection AddHttpInteractionHandlers(this IServiceCollection services, Assembly assembly)
Parameters
servicesIServiceCollectionThe IServiceCollection to add the IHttpInteractionHandler implementations to.
assemblyAssemblyThe assembly to scan for IHttpInteractionHandler implementations.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.