Skip to content

Class NatsDataOptions

Namespace: Cephalon.Data.Nats.Configuration
Assembly: Cephalon.Data.Nats.dll

Options controlling how Cephalon.Data.Nats connects to a NATS server and registers data services.

public sealed class NatsDataOptions

object ← NatsDataOptions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

The default NATS server URI used when neither URI setting is supplied.

public const string DefaultUri = "nats://localhost:4222"

string

The provider identifier used in capability and descriptor metadata.

public const string ProviderId = "nats"

string

The configuration section path used by default for NATS data settings.

public const string SectionPath = "Engine:Data:Nats"

string

Prefix applied to all managed JetStream KV bucket names. Defaults to cephalon.

public string BucketPrefix { get; set; }

string

When true, registers backed by a NATS JetStream KV bucket.

public bool RegisterInbox { get; set; }

bool

When true, registers backed by a NATS JetStream KV bucket.

public bool RegisterOutbox { get; set; }

bool

The inline NATS server URI. Defaults to nats://localhost:4222 when left unset.

public string? Uri { get; set; }

string?

Use either or .

The root Uris entry name to resolve for NATS.

public string? UriName { get; set; }

string?

Use either or .