API reference
Class DiscordShardedHostedService
- Namespace
- DisCatSharp.Hosting
- Assembly
- DisCatSharp.Hosting.dll
Simple Implementation for DiscordShardedClient to work as a BackgroundService
public abstract class DiscordShardedHostedService : BaseHostedService, IDisposable, IDiscordHostedShardService, IHostedService
- Inheritance
-
DiscordShardedHostedService
- Implements
- Inherited Members
Constructors
- DiscordShardedHostedService(IConfiguration, ILogger<DiscordShardedHostedService>, IServiceProvider, IHostApplicationLifetime, string)
Initializes a new instance of the DiscordShardedHostedService class.
Properties
Methods
- ConfigureAsync()
Configure / Initialize the DiscordClient or DiscordShardedClient
- ConfigureExtensionsAsync()
Configure the extensions for your DiscordShardedClient or DiscordClient
- ConnectAsync()
Connect your client(s) to Discord