Table of Contents

Class GatewayClientHostBuilderExtensions

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

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

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

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

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

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