Class DiscordAspNetCoreSelfHostOptions
- Namespace
- DisCatSharp.Hosting.AspNetCore
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
Configures the optional self-hosted ASP.NET Core ingress mode for DisCatSharp.
public sealed class DiscordAspNetCoreSelfHostOptions
- Inheritance
-
DiscordAspNetCoreSelfHostOptions
- Inherited Members
Remarks
These settings are used only when AddDisCatSharpAspNetCoreSelfHost(IServiceCollection, Action<DiscordAspNetCoreSelfHostOptions>?, Action<DiscordWebIngressOptions>?, Action<DiscordAspNetCoreIngressOptions>?) or the corresponding host builder extensions are used.
Fields
- DefaultListenAddress
The default listen address used by the internal ASP.NET Core app.
- DefaultListenPort
The default listen port used by the internal ASP.NET Core app.
- DefaultScheme
The default URI scheme used to build the internal listen address.
Properties
- BaseUrl
Gets or sets the externally visible base URL advertised by the self-hosted ingress surface. When not set, the runtime falls back to the bound listen address.
- ListenAddress
Gets or sets the address or host name that the internal ASP.NET Core app should bind to.
- ListenPort
Gets or sets the port that the internal ASP.NET Core app should bind to. Specify
0to request an ephemeral port from the operating system.
- Scheme
Gets or sets the URI scheme used to build the internal listen address.