ข้ามไปยังเนื้อหา

Class SqlServerDependencyDefinition

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Observability.SqlServerDependencies.Configuration
Assembly: Cephalon.Observability.SqlServerDependencies.dll

Describes one SQL Server dependency that should contribute to runtime health.

public sealed class SqlServerDependencyDefinition : DependencyDefinitionBase

object ← DependencyDefinitionBase ← SqlServerDependencyDefinition

DependencyDefinitionBase.Id, DependencyDefinitionBase.DisplayName, DependencyDefinitionBase.Required, DependencyDefinitionBase.TimeoutSeconds, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Initializes a new instance of the class.

public SqlServerDependencyDefinition()

Gets or sets the optional full SQL Server connection string used for the probe.

public string? ConnectionString { get; set; }

string?

Gets or sets the database name used for the health query.

public string Database { get; set; }

string

Gets or sets the optional SQL Server encryption mode such as Optional, Mandatory, or Strict.

public string? Encrypt { get; set; }

string?

Gets or sets the SQL statement executed to verify the dependency.

public string HealthQuery { get; set; }

string

Gets or sets the SQL Server host name or IP address to probe when no full connection string is supplied.

public string Host { get; set; }

string

Gets or sets the optional password used for authentication when no full connection string is supplied.

public string? Password { get; set; }

string?

Gets or sets the SQL Server TCP port.

public int Port { get; set; }

int

Gets or sets the optional value that controls whether server certificate validation should be bypassed.

public bool? TrustServerCertificate { get; set; }

bool?

Gets or sets the optional user name used for authentication when no full connection string is supplied.

public string? Username { get; set; }

string?