Class HostBuilderExtensions
- Namespace
- DisCatSharp.Hosting.DependencyInjection
- Assembly
- DisCatSharp.Hosting.DependencyInjection.dll
Provides host builder extensions for registering DisCatSharp hosted services.
public static class HostBuilderExtensions
- Inheritance
-
HostBuilderExtensions
- Inherited Members
Methods
- AddDiscordHostedService<TService>(IHostApplicationBuilder)
Adds your bot as a background service to the host application builder.
- AddDiscordHostedService<TService>(IHostBuilder)
Adds your bot as a background service to the host builder.
- AddDiscordHostedService<TInterface, TService>(IHostApplicationBuilder)
Adds a Discord background service that can also be resolved via
TInterfaceto the host application builder.
- AddDiscordHostedService<TInterface, TService>(IHostBuilder)
Adds a Discord background service that can also be resolved via
TInterfaceto the host builder.
- AddDiscordHostedShardService<TService>(IHostApplicationBuilder)
Adds your bot as a sharded background service to the host application builder.
- AddDiscordHostedShardService<TService>(IHostBuilder)
Adds your bot as a sharded background service to the host builder.
- AddDiscordHostedShardService<TInterface, TService>(IHostApplicationBuilder)
Adds a sharded Discord background service that can also be resolved via
TInterfaceto the host application builder.
- AddDiscordHostedShardService<TInterface, TService>(IHostBuilder)
Adds a sharded Discord background service that can also be resolved via
TInterfaceto the host builder.