Table of Contents
API reference

Method AddDisCatSharpAspNetCore

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

AddDisCatSharpAspNetCore(IHostApplicationBuilder, Action<DiscordWebIngressOptions>?, Action<DiscordAspNetCoreIngressOptions>?, Action<DiscordOAuthIngressOptions>?)

Registers the DisCatSharp ASP.NET Core ingress services on a host application builder.

public static IHostApplicationBuilder AddDisCatSharpAspNetCore(this IHostApplicationBuilder builder, Action<DiscordWebIngressOptions>? configure = null, Action<DiscordAspNetCoreIngressOptions>? configureAspNetCore = null, Action<DiscordOAuthIngressOptions>? configureOAuth = null)

Parameters

builder IHostApplicationBuilder

The host application builder to update.

configure Action<DiscordWebIngressOptions>

Optional configuration callback for the ingress subsystem.

configureAspNetCore Action<DiscordAspNetCoreIngressOptions>

Optional configuration callback for ASP.NET Core endpoint conventions.

configureOAuth Action<DiscordOAuthIngressOptions>

Optional configuration callback for the OAuth callback flow.

Returns

IHostApplicationBuilder

The builder for chaining purposes.

Remarks

Exceptions

ArgumentNullException

builder is null.

AddDisCatSharpAspNetCore(IHostBuilder, Action<DiscordWebIngressOptions>?, Action<DiscordAspNetCoreIngressOptions>?, Action<DiscordOAuthIngressOptions>?)

Registers the DisCatSharp ASP.NET Core ingress services on a host builder.

public static IHostBuilder AddDisCatSharpAspNetCore(this IHostBuilder builder, Action<DiscordWebIngressOptions>? configure = null, Action<DiscordAspNetCoreIngressOptions>? configureAspNetCore = null, Action<DiscordOAuthIngressOptions>? configureOAuth = null)

Parameters

builder IHostBuilder

The host builder to update.

configure Action<DiscordWebIngressOptions>

Optional configuration callback for the ingress subsystem.

configureAspNetCore Action<DiscordAspNetCoreIngressOptions>

Optional configuration callback for ASP.NET Core endpoint conventions.

configureOAuth Action<DiscordOAuthIngressOptions>

Optional configuration callback for the OAuth callback flow.

Returns

IHostBuilder

The builder for chaining purposes.

Remarks

Exceptions

ArgumentNullException

builder is null.