Table of Contents

Class MoongateHttpServiceOptions

Namespace
Moongate.Server.Http
Assembly
Moongate.Server.Http.dll

Configuration options for MoongateHttpService.

public sealed class MoongateHttpServiceOptions
Inheritance
MoongateHttpServiceOptions
Inherited Members

Properties

AuthenticateUserAsync

Optional authentication callback used by the login endpoint.

public Func<string, string, CancellationToken, Task<MoongateHttpAuthenticatedUser?>>? AuthenticateUserAsync { get; init; }

Property Value

Func<string, string, CancellationToken, Task<MoongateHttpAuthenticatedUser>>

ConfigureApp

Optional callback for extra endpoint/middleware registrations.

public Action<WebApplication>? ConfigureApp { get; init; }

Property Value

Action<WebApplication>

DirectoriesConfig

Shared directories configuration used by the server.

public DirectoriesConfig? DirectoriesConfig { get; init; }

Property Value

DirectoriesConfig

IsOpenApiEnabled

Enables OpenAPI endpoints.

public bool IsOpenApiEnabled { get; init; }

Property Value

bool

Jwt

Optional JWT authentication options.

public MoongateHttpJwtOptions? Jwt { get; init; }

Property Value

MoongateHttpJwtOptions

MetricsSnapshotFactory

Optional factory used by the built-in /metrics endpoint.

public Func<MoongateHttpMetricsSnapshot?>? MetricsSnapshotFactory { get; init; }

Property Value

Func<MoongateHttpMetricsSnapshot>

MinimumLogLevel

Minimum log level for HTTP logs.

public LogEventLevel MinimumLogLevel { get; init; }

Property Value

LogEventLevel

Port

HTTP listening port.

public int Port { get; init; }

Property Value

int

ServiceMappings

Optional service mappings exposed to the internal ASP.NET Core container.

public IReadOnlyDictionary<Type, Type>? ServiceMappings { get; init; }

Property Value

IReadOnlyDictionary<Type, Type>