Skip to content
DocsTry Aspire
DocsTry

NatsClientSettings Properties

ClassProperties3 members
Provides the client configuration settings for connecting to a NATS cluster.
ConnectionStringSection titled ConnectionStringnullablestring?
Gets or sets the connection string of the NATS cluster to connect to.
public string? ConnectionString { get; set; }
DisableHealthChecksSection titled DisableHealthChecksbool
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; }