Skip to content

Class DatabaseRuntimeSettings

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes configuration-driven database runtime tuning for Cephalon apps.

public sealed class DatabaseRuntimeSettings

objectDatabaseRuntimeSettings

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

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 class.

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)

enableDetailedErrors bool?

enableSensitiveDataLogging bool?

enableRetryOnFailure bool?

maxRetryCount int?

maxRetryDelaySeconds int?

commandTimeoutSeconds int?

maxBatchSize int?

roleProbeFreshnessSeconds int?

Gets the command timeout in seconds when one was configured.

public int? CommandTimeoutSeconds { get; }

int?

Gets an empty database-runtime settings instance.

public static DatabaseRuntimeSettings Empty { get; }

DatabaseRuntimeSettings

Gets a value indicating whether detailed provider errors were explicitly enabled.

public bool? EnableDetailedErrors { get; }

bool?

Gets a value indicating whether transient-failure retries were explicitly enabled.

public bool? EnableRetryOnFailure { get; }

bool?

Gets a value indicating whether sensitive-data logging was explicitly enabled.

public bool? EnableSensitiveDataLogging { get; }

bool?

Gets a value indicating whether any database runtime settings were explicitly supplied.

public bool HasValues { get; }

bool

Gets the maximum provider batch size when one was configured.

public int? MaxBatchSize { get; }

int?

Gets the maximum retry count when transient-failure retries were configured.

public int? MaxRetryCount { get; }

int?

Gets the maximum retry delay in seconds when transient-failure retries were configured.

public int? MaxRetryDelaySeconds { get; }

int?

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; }

int?

Reads database runtime settings from the supplied configuration section.

public static DatabaseRuntimeSettings FromSection(IConfigurationSection? section)

section IConfigurationSection?

DatabaseRuntimeSettings