Table of Contents
API reference

Constructor DiscordShardedHostedService

Namespace
DisCatSharp.Hosting
Assembly
DisCatSharp.Hosting.dll

DiscordShardedHostedService(IConfiguration, ILogger<DiscordShardedHostedService>, IServiceProvider, IHostApplicationLifetime, string)

Initializes a new instance of the DiscordShardedHostedService class.

protected DiscordShardedHostedService(IConfiguration config, ILogger<DiscordShardedHostedService> logger, IServiceProvider serviceProvider, IHostApplicationLifetime applicationLifetime, string configBotSection = "DisCatSharp")

Parameters

config IConfiguration

The config.

logger ILogger<DiscordShardedHostedService>

The logger.

serviceProvider IServiceProvider

The service provider.

applicationLifetime IHostApplicationLifetime

The application lifetime.

configBotSection string

The config bot section.