Table of Contents
API reference

Method AddDisCatSharpAspNetCoreSelfHost

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

AddDisCatSharpAspNetCoreSelfHost(IHostApplicationBuilder, Action<DiscordAspNetCoreSelfHostOptions>?, Action<DiscordWebIngressOptions>?, Action<DiscordAspNetCoreIngressOptions>?)

Registers the optional self-hosted DisCatSharp ASP.NET Core ingress services on a host application builder.

public static IHostApplicationBuilder AddDisCatSharpAspNetCoreSelfHost(this IHostApplicationBuilder builder, Action<DiscordAspNetCoreSelfHostOptions>? configureSelfHost = null, Action<DiscordWebIngressOptions>? configure = null, Action<DiscordAspNetCoreIngressOptions>? configureAspNetCore = null)

Parameters

builder IHostApplicationBuilder

The host application builder to update.

configureSelfHost Action<DiscordAspNetCoreSelfHostOptions>

Optional configuration callback for the internal ASP.NET Core host.

configure Action<DiscordWebIngressOptions>

Optional configuration callback for the ingress subsystem.

configureAspNetCore Action<DiscordAspNetCoreIngressOptions>

Optional configuration callback for ASP.NET Core endpoint conventions.

Returns

IHostApplicationBuilder

The builder for chaining purposes.

Remarks

Exceptions

ArgumentNullException

builder is null.

AddDisCatSharpAspNetCoreSelfHost(IHostBuilder, Action<DiscordAspNetCoreSelfHostOptions>?, Action<DiscordWebIngressOptions>?, Action<DiscordAspNetCoreIngressOptions>?)

Registers the optional self-hosted DisCatSharp ASP.NET Core ingress services on a host builder.

public static IHostBuilder AddDisCatSharpAspNetCoreSelfHost(this IHostBuilder builder, Action<DiscordAspNetCoreSelfHostOptions>? configureSelfHost = null, Action<DiscordWebIngressOptions>? configure = null, Action<DiscordAspNetCoreIngressOptions>? configureAspNetCore = null)

Parameters

builder IHostBuilder

The host builder to update.

configureSelfHost Action<DiscordAspNetCoreSelfHostOptions>

Optional configuration callback for the internal ASP.NET Core host.

configure Action<DiscordWebIngressOptions>

Optional configuration callback for the ingress subsystem.

configureAspNetCore Action<DiscordAspNetCoreIngressOptions>

Optional configuration callback for ASP.NET Core endpoint conventions.

Returns

IHostBuilder

The builder for chaining purposes.

Remarks

Exceptions

ArgumentNullException

builder is null.