SqlPersistenceDiagnosticsSnapshot
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllRepresents the current connection and migration status of an SQL persistence provider.
public sealed record SqlPersistenceDiagnosticsSnapshot : IEquatable<SqlPersistenceDiagnosticsSnapshot>Inheritance
Section titled “Inheritance”object ← SqlPersistenceDiagnosticsSnapshot
Implements
Section titled “Implements”IEquatable<SqlPersistenceDiagnosticsSnapshot>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”SqlPersistenceDiagnosticsSnapshot()
Section titled “ SqlPersistenceDiagnosticsSnapshot()”public SqlPersistenceDiagnosticsSnapshot()Properties
Section titled “Properties”CanConnect
Section titled “ CanConnect”Gets whether the database can be reached.
public required bool CanConnect { get; init; }Property Value
Section titled “Property Value”PendingMigrations
Section titled “ PendingMigrations”Gets the pending migration names. The list is unknown and empty if the database cannot be reached.
public required IReadOnlyList<string> PendingMigrations { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(SqlPersistenceDiagnosticsSnapshot?)
Section titled “ Equals(SqlPersistenceDiagnosticsSnapshot?)”public bool Equals(SqlPersistenceDiagnosticsSnapshot? other)Parameters
Section titled “Parameters”other SqlPersistenceDiagnosticsSnapshot?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(SqlPersistenceDiagnosticsSnapshot?, SqlPersistenceDiagnosticsSnapshot?)
Section titled “ operator ==(SqlPersistenceDiagnosticsSnapshot?, SqlPersistenceDiagnosticsSnapshot?)”public static bool operator ==(SqlPersistenceDiagnosticsSnapshot? left, SqlPersistenceDiagnosticsSnapshot? right)Parameters
Section titled “Parameters”left SqlPersistenceDiagnosticsSnapshot?
right SqlPersistenceDiagnosticsSnapshot?
Returns
Section titled “Returns”operator !=(SqlPersistenceDiagnosticsSnapshot?, SqlPersistenceDiagnosticsSnapshot?)
Section titled “ operator !=(SqlPersistenceDiagnosticsSnapshot?, SqlPersistenceDiagnosticsSnapshot?)”public static bool operator !=(SqlPersistenceDiagnosticsSnapshot? left, SqlPersistenceDiagnosticsSnapshot? right)Parameters
Section titled “Parameters”left SqlPersistenceDiagnosticsSnapshot?
right SqlPersistenceDiagnosticsSnapshot?