Table of Contents

Class HttpInteractionHandlerServiceCollectionExtensions

Namespace
NetCord.Hosting
Assembly
NetCord.Hosting.dll
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 IServiceCollection

The IServiceCollection to add the IHttpInteractionHandler to.

handler Delegate

The 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 IServiceCollection

The 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 IServiceCollection

The 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.

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

services IServiceCollection

The IServiceCollection to add the IHttpInteractionHandler implementations to.

assembly Assembly

The assembly to scan for IHttpInteractionHandler implementations.

Returns

IServiceCollection

A reference to this instance after the operation has completed.