API reference
Class DiscordIngressSignatureValidationService
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress.Security
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
Aggregates the registered ingress signature validators.
public sealed class DiscordIngressSignatureValidationService : IDiscordIngressSignatureValidationService
- Inheritance
-
DiscordIngressSignatureValidationService
- Implements
- Inherited Members
Remarks
This aggregator is intentionally order-sensitive so applications can prepend custom validators ahead of the built-in Discord Ed25519 validator.
Constructors
- DiscordIngressSignatureValidationService(IEnumerable<IDiscordIngressSignatureValidator>)
Initializes a new instance of the DiscordIngressSignatureValidationService class.
Methods
- ValidateAsync(DiscordIngressRequest, CancellationToken)
Validates the supplied ingress request against the registered signature validators.