Class GatewayClientHostBuilderExtensions
- Namespace
- NetCord.Hosting.Gateway
- Assembly
- NetCord.Hosting.dll
public static class GatewayClientHostBuilderExtensions
- Inheritance
-
GatewayClientHostBuilderExtensions
- Inherited Members
-
Methods
public static IHostBuilder ConfigureDiscordGateway(this IHostBuilder builder, Action<GatewayClientOptions, IServiceProvider> configureOptions)
Parameters
builder
IHostBuilder
configureOptions
Action<GatewayClientOptions, IServiceProvider>
Returns
- IHostBuilder
public static IHostBuilder ConfigureDiscordGateway(this IHostBuilder builder, Action<GatewayClientOptions> configureOptions)
Parameters
builder
IHostBuilder
configureOptions
Action<GatewayClientOptions>
Returns
- IHostBuilder
UseDiscordGateway(IHostBuilder)
public static IHostBuilder UseDiscordGateway(this IHostBuilder builder)
Parameters
builder
IHostBuilder
Returns
- IHostBuilder
UseDiscordGateway(IHostBuilder, Action<GatewayClientOptions, IServiceProvider>)
public static IHostBuilder UseDiscordGateway(this IHostBuilder builder, Action<GatewayClientOptions, IServiceProvider> configureOptions)
Parameters
builder
IHostBuilder
configureOptions
Action<GatewayClientOptions, IServiceProvider>
Returns
- IHostBuilder
UseDiscordGateway(IHostBuilder, Action<GatewayClientOptions>)
public static IHostBuilder UseDiscordGateway(this IHostBuilder builder, Action<GatewayClientOptions> configureOptions)
Parameters
builder
IHostBuilder
configureOptions
Action<GatewayClientOptions>
Returns
- IHostBuilder