Class DatabaseRuntimeSettings
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes configuration-driven database runtime tuning for Cephalon apps.
public sealed class DatabaseRuntimeSettingsInheritance
Section titled “Inheritance”object ← DatabaseRuntimeSettings
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”DatabaseRuntimeSettings(bool?, bool?, bool?, int?, int?, int?, int?, int?)
Section titled “ DatabaseRuntimeSettings(bool?, bool?, bool?, int?, int?, int?, int?, int?)”Initializes a new instance of the
public DatabaseRuntimeSettings(bool? enableDetailedErrors = null, bool? enableSensitiveDataLogging = null, bool? enableRetryOnFailure = null, int? maxRetryCount = null, int? maxRetryDelaySeconds = null, int? commandTimeoutSeconds = null, int? maxBatchSize = null, int? roleProbeFreshnessSeconds = null)Parameters
Section titled “Parameters”enableDetailedErrors bool?
enableSensitiveDataLogging bool?
enableRetryOnFailure bool?
maxRetryCount int?
maxRetryDelaySeconds int?
commandTimeoutSeconds int?
maxBatchSize int?
roleProbeFreshnessSeconds int?
Properties
Section titled “Properties”CommandTimeoutSeconds
Section titled “ CommandTimeoutSeconds”Gets the command timeout in seconds when one was configured.
public int? CommandTimeoutSeconds { get; }Property Value
Section titled “Property Value”int?
Gets an empty database-runtime settings instance.
public static DatabaseRuntimeSettings Empty { get; }Property Value
Section titled “Property Value”EnableDetailedErrors
Section titled “ EnableDetailedErrors”Gets a value indicating whether detailed provider errors were explicitly enabled.
public bool? EnableDetailedErrors { get; }Property Value
Section titled “Property Value”bool?
EnableRetryOnFailure
Section titled “ EnableRetryOnFailure”Gets a value indicating whether transient-failure retries were explicitly enabled.
public bool? EnableRetryOnFailure { get; }Property Value
Section titled “Property Value”bool?
EnableSensitiveDataLogging
Section titled “ EnableSensitiveDataLogging”Gets a value indicating whether sensitive-data logging was explicitly enabled.
public bool? EnableSensitiveDataLogging { get; }Property Value
Section titled “Property Value”bool?
HasValues
Section titled “ HasValues”Gets a value indicating whether any database runtime settings were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”MaxBatchSize
Section titled “ MaxBatchSize”Gets the maximum provider batch size when one was configured.
public int? MaxBatchSize { get; }Property Value
Section titled “Property Value”int?
MaxRetryCount
Section titled “ MaxRetryCount”Gets the maximum retry count when transient-failure retries were configured.
public int? MaxRetryCount { get; }Property Value
Section titled “Property Value”int?
MaxRetryDelaySeconds
Section titled “ MaxRetryDelaySeconds”Gets the maximum retry delay in seconds when transient-failure retries were configured.
public int? MaxRetryDelaySeconds { get; }Property Value
Section titled “Property Value”int?
RoleProbeFreshnessSeconds
Section titled “ RoleProbeFreshnessSeconds”Gets the freshness window in seconds for cached database-role probes when one was configured.
A value of 0 disables probe-result caching.
public int? RoleProbeFreshnessSeconds { get; }Property Value
Section titled “Property Value”int?
Methods
Section titled “Methods”FromSection(IConfigurationSection?)
Section titled “ FromSection(IConfigurationSection?)”Reads database runtime settings from the supplied configuration section.
public static DatabaseRuntimeSettings FromSection(IConfigurationSection? section)Parameters
Section titled “Parameters”section IConfigurationSection?