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 : DependencyDefinitionBaseInheritance
Section titled “Inheritance”object ← DependencyDefinitionBase ← SqlServerDependencyDefinition
Inherited Members
Section titled “Inherited Members”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()
Constructors
Section titled “Constructors”SqlServerDependencyDefinition()
Section titled “ SqlServerDependencyDefinition()”Initializes a new instance of the
public SqlServerDependencyDefinition()Properties
Section titled “Properties”ConnectionString
Section titled “ ConnectionString”Gets or sets the optional full SQL Server connection string used for the probe.
public string? ConnectionString { get; set; }Property Value
Section titled “Property Value”Database
Section titled “ Database”Gets or sets the database name used for the health query.
public string Database { get; set; }Property Value
Section titled “Property Value”Encrypt
Section titled “ Encrypt”Gets or sets the optional SQL Server encryption mode such as Optional, Mandatory, or Strict.
public string? Encrypt { get; set; }Property Value
Section titled “Property Value”HealthQuery
Section titled “ HealthQuery”Gets or sets the SQL statement executed to verify the dependency.
public string HealthQuery { get; set; }Property Value
Section titled “Property Value”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; }Property Value
Section titled “Property Value”Password
Section titled “ Password”Gets or sets the optional password used for authentication when no full connection string is supplied.
public string? Password { get; set; }Property Value
Section titled “Property Value”Gets or sets the SQL Server TCP port.
public int Port { get; set; }Property Value
Section titled “Property Value”TrustServerCertificate
Section titled “ TrustServerCertificate”Gets or sets the optional value that controls whether server certificate validation should be bypassed.
public bool? TrustServerCertificate { get; set; }Property Value
Section titled “Property Value”bool?
Username
Section titled “ Username”Gets or sets the optional user name used for authentication when no full connection string is supplied.
public string? Username { get; set; }