Table of Contents

Class ShardedGatewayClientHostBuilderExtensions

Namespace
NetCord.Hosting.Gateway
Assembly
NetCord.Hosting.dll
public static class ShardedGatewayClientHostBuilderExtensions
Inheritance
ShardedGatewayClientHostBuilderExtensions
Inherited Members

Methods

ConfigureDiscordShardedGateway(IHostBuilder, Action<ShardedGatewayClientOptions, IServiceProvider>)

Configures a ShardedGatewayClient in the specified IHostBuilder.

public static IHostBuilder ConfigureDiscordShardedGateway(this IHostBuilder builder, Action<ShardedGatewayClientOptions, IServiceProvider> configureOptions)

Parameters

builder IHostBuilder

The IHostBuilder to configure the ShardedGatewayClient on.

configureOptions Action<ShardedGatewayClientOptions, IServiceProvider>

A delegate to configure the ShardedGatewayClient.

Returns

IHostBuilder

A reference to this instance after the operation has completed.

ConfigureDiscordShardedGateway(IHostBuilder, Action<ShardedGatewayClientOptions>)

Configures a ShardedGatewayClient in the specified IHostBuilder.

public static IHostBuilder ConfigureDiscordShardedGateway(this IHostBuilder builder, Action<ShardedGatewayClientOptions> configureOptions)

Parameters

builder IHostBuilder

The IHostBuilder to configure the ShardedGatewayClient on.

configureOptions Action<ShardedGatewayClientOptions>

A delegate to configure the ShardedGatewayClient.

Returns

IHostBuilder

A reference to this instance after the operation has completed.

UseDiscordShardedGateway(IHostBuilder)

Adds a ShardedGatewayClient and its associated RestClient to the specified IHostBuilder.

public static IHostBuilder UseDiscordShardedGateway(this IHostBuilder builder)

Parameters

builder IHostBuilder

The IHostBuilder to add the ShardedGatewayClient to.

Returns

IHostBuilder

A reference to this instance after the operation has completed.

UseDiscordShardedGateway(IHostBuilder, Action<ShardedGatewayClientOptions, IServiceProvider>)

Adds a ShardedGatewayClient and its associated RestClient to the specified IHostBuilder.

public static IHostBuilder UseDiscordShardedGateway(this IHostBuilder builder, Action<ShardedGatewayClientOptions, IServiceProvider> configureOptions)

Parameters

builder IHostBuilder

The IHostBuilder to add the ShardedGatewayClient to.

configureOptions Action<ShardedGatewayClientOptions, IServiceProvider>

A delegate to configure the ShardedGatewayClient.

Returns

IHostBuilder

A reference to this instance after the operation has completed.

UseDiscordShardedGateway(IHostBuilder, Action<ShardedGatewayClientOptions>)

Adds a ShardedGatewayClient and its associated RestClient to the specified IHostBuilder.

public static IHostBuilder UseDiscordShardedGateway(this IHostBuilder builder, Action<ShardedGatewayClientOptions> configureOptions)

Parameters

builder IHostBuilder

The IHostBuilder to add the ShardedGatewayClient to.

configureOptions Action<ShardedGatewayClientOptions>

A delegate to configure the ShardedGatewayClient.

Returns

IHostBuilder

A reference to this instance after the operation has completed.