Skip to content
Docs Try Aspire

NatsClientSettings Properties

Class Properties 3 members
Provides the client configuration settings for connecting to a NATS cluster.
ConnectionString Section titled ConnectionString nullable string?
Gets or sets the connection string of the NATS cluster to connect to.
public string? ConnectionString { get; set; }
DisableHealthChecks Section titled DisableHealthChecks bool
Gets or sets a boolean value that indicates whether the NATS health check is disabled or not.
public bool DisableHealthChecks { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }