Class DatabaseRoleProbeDescriptor
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll
Describes the stable probe-freshness runtime state published for one database role.
public sealed class DatabaseRoleProbeDescriptorInheritance
Section titled “Inheritance”object ← DatabaseRoleProbeDescriptor
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”DatabaseRoleProbeDescriptor(bool, int, string?, string?, DateTimeOffset?, int?)
Section titled “ DatabaseRoleProbeDescriptor(bool, int, string?, string?, DateTimeOffset?, int?)”Creates a new database-role probe descriptor.
public DatabaseRoleProbeDescriptor(bool cacheEnabled, int freshnessSeconds, string? freshnessOrigin = null, string? source = null, DateTimeOffset? freshUntilUtc = null, int? ageSeconds = null)Parameters
Section titled “Parameters”cacheEnabled bool
Whether cached probe answers are enabled for the role.
freshnessSeconds int
The configured or default freshness window in seconds.
freshnessOrigin string?
The source of the effective freshness window, such as configured or default.
source string?
The source of the current answer, such as live or cache.
freshUntilUtc DateTimeOffset?
The UTC timestamp until which the current answer remains fresh, when known.
ageSeconds int?
The age in seconds of the current answer, when known.
Properties
Section titled “Properties”AgeSeconds
Section titled “ AgeSeconds”Gets the age in seconds of the current answer, when known.
public int? AgeSeconds { get; }Property Value
Section titled “Property Value”int?
CacheEnabled
Section titled “ CacheEnabled”Gets a value indicating whether cached probe answers are enabled for the role.
public bool CacheEnabled { get; }Property Value
Section titled “Property Value”FreshUntilUtc
Section titled “ FreshUntilUtc”Gets the UTC timestamp until which the current answer remains fresh, when known.
public DateTimeOffset? FreshUntilUtc { get; }Property Value
Section titled “Property Value”FreshnessOrigin
Section titled “ FreshnessOrigin”Gets the source of the effective freshness window, when known.
public string? FreshnessOrigin { get; }Property Value
Section titled “Property Value”FreshnessSeconds
Section titled “ FreshnessSeconds”Gets the configured or default freshness window in seconds.
public int FreshnessSeconds { get; }Property Value
Section titled “Property Value”Source
Section titled “ Source”Gets the source of the current answer, such as live or cache, when known.
public string? Source { get; }