Class GatewayEventHandlerServiceCollectionExtensions
- Namespace
- NetCord.Hosting.Gateway
- Assembly
- NetCord.Hosting.dll
public static class GatewayEventHandlerServiceCollectionExtensions
- Inheritance
-
GatewayEventHandlerServiceCollectionExtensions
- Inherited Members
-
Methods
AddGatewayEventHandler(IServiceCollection, string, Delegate)
public static IServiceCollection AddGatewayEventHandler(this IServiceCollection services, string name, Delegate handler)
Parameters
services
IServiceCollection
name
string
handler
Delegate
Returns
- IServiceCollection
AddGatewayEventHandler<T>(IServiceCollection)
public static IServiceCollection AddGatewayEventHandler<T>(this IServiceCollection services) where T : class, IGatewayEventHandlerBase
Parameters
services
IServiceCollection
Returns
- IServiceCollection
Type Parameters
T
AddGatewayEventHandler<T>(IServiceCollection, Func<IServiceProvider, T>)
public static IServiceCollection AddGatewayEventHandler<T>(this IServiceCollection services, Func<IServiceProvider, T> implementationFactory) where T : class, IGatewayEventHandlerBase
Parameters
services
IServiceCollection
implementationFactory
Func<IServiceProvider, T>
Returns
- IServiceCollection
Type Parameters
T
AddGatewayEventHandler<T>(IServiceCollection, string, Delegate)
public static IServiceCollection AddGatewayEventHandler<T>(this IServiceCollection services, string name, Delegate handler)
Parameters
services
IServiceCollection
name
string
handler
Delegate
Returns
- IServiceCollection
Type Parameters
T
AddGatewayEventHandlers(IServiceCollection, Assembly)
public static IServiceCollection AddGatewayEventHandlers(this IServiceCollection services, Assembly assembly)
Parameters
services
IServiceCollection
assembly
Assembly
Returns
- IServiceCollection
AddShardedGatewayEventHandler(IServiceCollection, string, Delegate)
public static IServiceCollection AddShardedGatewayEventHandler(this IServiceCollection services, string name, Delegate handler)
Parameters
services
IServiceCollection
name
string
handler
Delegate
Returns
- IServiceCollection
AddShardedGatewayEventHandler<T>(IServiceCollection)
public static IServiceCollection AddShardedGatewayEventHandler<T>(this IServiceCollection services) where T : class, IShardedGatewayEventHandlerBase
Parameters
services
IServiceCollection
Returns
- IServiceCollection
Type Parameters
T
AddShardedGatewayEventHandler<T>(IServiceCollection, Func<IServiceProvider, T>)
public static IServiceCollection AddShardedGatewayEventHandler<T>(this IServiceCollection services, Func<IServiceProvider, T> implementationFactory) where T : class, IShardedGatewayEventHandlerBase
Parameters
services
IServiceCollection
implementationFactory
Func<IServiceProvider, T>
Returns
- IServiceCollection
Type Parameters
T
AddShardedGatewayEventHandler<T>(IServiceCollection, string, Delegate)
public static IServiceCollection AddShardedGatewayEventHandler<T>(this IServiceCollection services, string name, Delegate handler)
Parameters
services
IServiceCollection
name
string
handler
Delegate
Returns
- IServiceCollection
Type Parameters
T
AddShardedGatewayEventHandlers(IServiceCollection, Assembly)
public static IServiceCollection AddShardedGatewayEventHandlers(this IServiceCollection services, Assembly assembly)
Parameters
services
IServiceCollection
assembly
Assembly
Returns
- IServiceCollection