Table of Contents
API reference

Method MapDiscordWebhookIngress

Namespace
DisCatSharp.Hosting.AspNetCore
Assembly
DisCatSharp.Hosting.AspNetCore.dll

MapDiscordWebhookIngress(IEndpointRouteBuilder)

Maps the DisCatSharp webhook ingress endpoints.

public static RouteGroupBuilder MapDiscordWebhookIngress(this IEndpointRouteBuilder endpoints)

Parameters

endpoints IEndpointRouteBuilder

The endpoint route builder to update.

Returns

RouteGroupBuilder

The configured webhooks route group.

Remarks

This maps both webhook event delivery and incoming webhook callbacks under the configured webhook root. Signed webhook events are acknowledged before their async event handlers complete, while generic incoming webhook handlers run inline and return the first response produced by the registered pipeline.

Exceptions

ArgumentNullException

endpoints is null.

InvalidOperationException

DisCatSharp ASP.NET Core ingress services have not been registered on the application's service provider.