API reference
Class ServiceCollectionExtensions
- Namespace
- DisCatSharp.Hosting.AspNetCore
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
Provides ASP.NET Core service registration extensions for DisCatSharp.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
- AddDisCatSharpAspNetCore(IServiceCollection, Action<DiscordWebIngressOptions>?, Action<DiscordAspNetCoreIngressOptions>?, Action<DiscordOAuthIngressOptions>?)
Registers the baseline ASP.NET Core service dependencies used by the DisCatSharp web ingress scaffold.
- AddDisCatSharpAspNetCoreSelfHost(IServiceCollection, Action<DiscordAspNetCoreSelfHostOptions>?, Action<DiscordWebIngressOptions>?, Action<DiscordAspNetCoreIngressOptions>?)
Registers the optional self-hosted ASP.NET Core ingress infrastructure for applications that do not already own an ASP.NET Core app.
- AddDiscordIncomingWebhookHandler<THandler>(IServiceCollection)
Registers a generic incoming webhook ingress handler.
- AddDiscordIngressSignatureValidator<TValidator>(IServiceCollection)
Registers a transport-agnostic ingress signature validator.
- AddDiscordInteractionIngressHandler<THandler>(IServiceCollection)
Registers a Discord HTTP interactions ingress handler.
- AddDiscordLinkedRolesMetadataProvider<TProvider>(IServiceCollection)
Registers the metadata provider used by DiscordLinkedRolesService when synchronizing linked-roles metadata.
- AddDiscordLinkedRolesSupport(IServiceCollection, Action<DiscordLinkedRolesOptions>?)
Registers linked-roles helpers for verification URL generation, metadata synchronization, and OAuth role connection updates.