Class GatewayClientHostBuilderExtensions
public static class GatewayClientHostBuilderExtensions
- Inheritance
-
GatewayClientHostBuilderExtensions
- Inherited Members
Methods
ConfigureDiscordGateway(IHostBuilder, Action<GatewayClientOptions, IServiceProvider>)
Configures a GatewayClient in the specified IHostBuilder.
public static IHostBuilder ConfigureDiscordGateway(this IHostBuilder builder, Action<GatewayClientOptions, IServiceProvider> configureOptions)
Parameters
builder
IHostBuilderThe IHostBuilder to configure the GatewayClient on.
configureOptions
Action<GatewayClientOptions, IServiceProvider>A delegate to configure the GatewayClient.
Returns
- IHostBuilder
A reference to this instance after the operation has completed.
ConfigureDiscordGateway(IHostBuilder, Action<GatewayClientOptions>)
Configures a GatewayClient in the specified IHostBuilder.
public static IHostBuilder ConfigureDiscordGateway(this IHostBuilder builder, Action<GatewayClientOptions> configureOptions)
Parameters
builder
IHostBuilderThe IHostBuilder to configure the GatewayClient on.
configureOptions
Action<GatewayClientOptions>A delegate to configure the GatewayClient.
Returns
- IHostBuilder
A reference to this instance after the operation has completed.
UseDiscordGateway(IHostBuilder)
Adds a GatewayClient and its associated RestClient to the specified IHostBuilder.
public static IHostBuilder UseDiscordGateway(this IHostBuilder builder)
Parameters
builder
IHostBuilderThe IHostBuilder to add the GatewayClient to.
Returns
- IHostBuilder
A reference to this instance after the operation has completed.
UseDiscordGateway(IHostBuilder, Action<GatewayClientOptions, IServiceProvider>)
Adds a GatewayClient and its associated RestClient to the specified IHostBuilder.
public static IHostBuilder UseDiscordGateway(this IHostBuilder builder, Action<GatewayClientOptions, IServiceProvider> configureOptions)
Parameters
builder
IHostBuilderThe IHostBuilder to add the GatewayClient to.
configureOptions
Action<GatewayClientOptions, IServiceProvider>A delegate to configure the GatewayClient.
Returns
- IHostBuilder
A reference to this instance after the operation has completed.
UseDiscordGateway(IHostBuilder, Action<GatewayClientOptions>)
Adds a GatewayClient and its associated RestClient to the specified IHostBuilder.
public static IHostBuilder UseDiscordGateway(this IHostBuilder builder, Action<GatewayClientOptions> configureOptions)
Parameters
builder
IHostBuilderThe IHostBuilder to add the GatewayClient to.
configureOptions
Action<GatewayClientOptions>A delegate to configure the GatewayClient.
Returns
- IHostBuilder
A reference to this instance after the operation has completed.