Class ChronicleAspNetCoreOptions

Namespace
Microsoft.AspNetCore.Builder
Assembly
Cratis.Chronicle.AspNetCore.dll

Represents the ASP.NET Core–specific settings for connecting to Chronicle.

public class ChronicleAspNetCoreOptions : ChronicleClientOptions
Inheritance
ChronicleAspNetCoreOptions
Inherited Members
Extension Methods

Remarks

Extends ChronicleClientOptions with settings that are specific to ASP.NET Core hosting, such as HTTP header–based namespace resolution. For non-web hosts (worker services, console apps), use ChronicleClientOptions directly via the IHostApplicationBuilder.AddCratisChronicle extension in the DotNET client package.

Constructors

ChronicleAspNetCoreOptions()

Initializes a new instance of the ChronicleAspNetCoreOptions class.

public ChronicleAspNetCoreOptions()

Properties

NamespaceHttpHeader

Gets or sets the name of the HTTP header to use for resolving the namespace.

[Required]
public string NamespaceHttpHeader { get; set; }

Property Value

string

UseAutomaticMiddleware

Gets or sets a value indicating whether startup filters install Chronicle's unit of work and causation middleware. Defaults to true. Set to false to place them explicitly with UseCratisChronicle(IApplicationBuilder) after authentication and authorization.

public bool UseAutomaticMiddleware { get; set; }

Property Value

bool