Table of Contents

Class GatewayClientServiceCollectionExtensions

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

Methods

AddDiscordGateway(IServiceCollection)

public static IServiceCollection AddDiscordGateway(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

AddDiscordGateway(IServiceCollection, Action<GatewayClientOptions, IServiceProvider>)

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

Parameters

services IServiceCollection
configureOptions Action<GatewayClientOptions, IServiceProvider>

Returns

IServiceCollection

AddDiscordGateway(IServiceCollection, Action<GatewayClientOptions>)

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

Parameters

services IServiceCollection
configureOptions Action<GatewayClientOptions>

Returns

IServiceCollection

ConfigureDiscordGateway(IServiceCollection, Action<GatewayClientOptions, IServiceProvider>)

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

Parameters

services IServiceCollection
configureOptions Action<GatewayClientOptions, IServiceProvider>

Returns

IServiceCollection

ConfigureDiscordGateway(IServiceCollection, Action<GatewayClientOptions>)

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

Parameters

services IServiceCollection
configureOptions Action<GatewayClientOptions>

Returns

IServiceCollection