Table of Contents

Class GatewayClientServiceCollectionExtensions

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

Methods

AddDiscordGateway(IServiceCollection)

Adds a GatewayClient and its associated RestClient to the specified IServiceCollection.

public static IServiceCollection AddDiscordGateway(this IServiceCollection services)

Parameters

services IServiceCollection

The IServiceCollection to add the GatewayClient to.

Returns

IServiceCollection

A reference to this instance after the operation has completed.

AddDiscordGateway(IServiceCollection, Action<GatewayClientOptions, IServiceProvider>)

Adds a GatewayClient and its associated RestClient to the specified IServiceCollection.

public static IServiceCollection AddDiscordGateway(this IServiceCollection services, Action<GatewayClientOptions, IServiceProvider> configureOptions)

Parameters

services IServiceCollection

The IServiceCollection to add the GatewayClient to.

configureOptions Action<GatewayClientOptions, IServiceProvider>

A delegate to configure the GatewayClient.

Returns

IServiceCollection

A reference to this instance after the operation has completed.

AddDiscordGateway(IServiceCollection, Action<GatewayClientOptions>)

Adds a GatewayClient and its associated RestClient to the specified IServiceCollection.

public static IServiceCollection AddDiscordGateway(this IServiceCollection services, Action<GatewayClientOptions> configureOptions)

Parameters

services IServiceCollection

The IServiceCollection to add the GatewayClient to.

configureOptions Action<GatewayClientOptions>

A delegate to configure the GatewayClient.

Returns

IServiceCollection

A reference to this instance after the operation has completed.

ConfigureDiscordGateway(IServiceCollection, Action<GatewayClientOptions, IServiceProvider>)

Configures a GatewayClient in the specified IServiceCollection.

public static IServiceCollection ConfigureDiscordGateway(this IServiceCollection services, Action<GatewayClientOptions, IServiceProvider> configureOptions)

Parameters

services IServiceCollection

The IServiceCollection to configure the GatewayClient on.

configureOptions Action<GatewayClientOptions, IServiceProvider>

A delegate to configure the GatewayClient.

Returns

IServiceCollection

A reference to this instance after the operation has completed.

ConfigureDiscordGateway(IServiceCollection, Action<GatewayClientOptions>)

Configures a GatewayClient in the specified IServiceCollection.

public static IServiceCollection ConfigureDiscordGateway(this IServiceCollection services, Action<GatewayClientOptions> configureOptions)

Parameters

services IServiceCollection

The IServiceCollection to configure the GatewayClient on.

configureOptions Action<GatewayClientOptions>

A delegate to configure the GatewayClient.

Returns

IServiceCollection

A reference to this instance after the operation has completed.