ISqlPersistenceDiagnostics
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllDefines optional diagnostics for the active SQL persistence provider.
public interface ISqlPersistenceDiagnosticsRemarks
Section titled “Remarks”Each Use* extension (UsePostgreSql, UseSqlServer, and
UseSqlite) registers this interface with Replace. Diagnostics
reflect the winner. Persistence is in memory when no provider registers it.
The check is a lightweight connection probe, similar to
SELECT 1. It applies no migration and changes no data.
Properties
Section titled “Properties”ProviderName
Section titled “ ProviderName”Gets the provider name, for example PostgreSQL.
string ProviderName { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”GetSnapshotAsync(CancellationToken)
Section titled “ GetSnapshotAsync(CancellationToken)”Reads the connection and migration status.
ValueTask<SqlPersistenceDiagnosticsSnapshot> GetSnapshotAsync(CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<SqlPersistenceDiagnosticsSnapshot>
The current status.