Class ShardedGatewayClientServiceCollectionExtensions
public static class ShardedGatewayClientServiceCollectionExtensions
- Inheritance
-
ShardedGatewayClientServiceCollectionExtensions
- Inherited Members
Methods
AddDiscordShardedGateway(IServiceCollection)
Adds a ShardedGatewayClient and its associated RestClient to the specified IServiceCollection.
public static IServiceCollection AddDiscordShardedGateway(this IServiceCollection services)
Parameters
services
IServiceCollectionThe IServiceCollection to add the ShardedGatewayClient to.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.
AddDiscordShardedGateway(IServiceCollection, Action<ShardedGatewayClientOptions, IServiceProvider>)
Adds a ShardedGatewayClient and its associated RestClient to the specified IServiceCollection.
public static IServiceCollection AddDiscordShardedGateway(this IServiceCollection services, Action<ShardedGatewayClientOptions, IServiceProvider> configureOptions)
Parameters
services
IServiceCollectionThe IServiceCollection to add the ShardedGatewayClient to.
configureOptions
Action<ShardedGatewayClientOptions, IServiceProvider>A delegate to configure the ShardedGatewayClient.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.
AddDiscordShardedGateway(IServiceCollection, Action<ShardedGatewayClientOptions>)
Adds a ShardedGatewayClient and its associated RestClient to the specified IServiceCollection.
public static IServiceCollection AddDiscordShardedGateway(this IServiceCollection services, Action<ShardedGatewayClientOptions> configureOptions)
Parameters
services
IServiceCollectionThe IServiceCollection to add the ShardedGatewayClient to.
configureOptions
Action<ShardedGatewayClientOptions>A delegate to configure the ShardedGatewayClient.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.
ConfigureDiscordShardedGateway(IServiceCollection, Action<ShardedGatewayClientOptions, IServiceProvider>)
Configures a ShardedGatewayClient in the specified IServiceCollection.
public static IServiceCollection ConfigureDiscordShardedGateway(this IServiceCollection services, Action<ShardedGatewayClientOptions, IServiceProvider> configureOptions)
Parameters
services
IServiceCollectionThe IServiceCollection to configure the ShardedGatewayClient on.
configureOptions
Action<ShardedGatewayClientOptions, IServiceProvider>A delegate to configure the ShardedGatewayClient.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.
ConfigureDiscordShardedGateway(IServiceCollection, Action<ShardedGatewayClientOptions>)
Configures a ShardedGatewayClient in the specified IServiceCollection.
public static IServiceCollection ConfigureDiscordShardedGateway(this IServiceCollection services, Action<ShardedGatewayClientOptions> configureOptions)
Parameters
services
IServiceCollectionThe IServiceCollection to configure the ShardedGatewayClient on.
configureOptions
Action<ShardedGatewayClientOptions>A delegate to configure the ShardedGatewayClient.
Returns
- IServiceCollection
A reference to this instance after the operation has completed.