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
services
IServiceCollectionThe IServiceCollection to add the IHttpInteractionHandler to.
handler
DelegateThe 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
services
IServiceCollectionThe IServiceCollection to add the IHttpInteractionHandler to.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.
Type Parameters
T
The 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
services
IServiceCollectionThe IServiceCollection to add the IHttpInteractionHandler to.
implementationFactory
Func<IServiceProvider, T>The factory that creates the IHttpInteractionHandler.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.
Type Parameters
T
The type of the IHttpInteractionHandler to add.