Interface IDataBlockPersistence
- Namespace
- Datafication.Server.Core.Registry
- Assembly
- Datafication.Server.Core.dll
Defines persistence operations for DataBlock registry state.
public interface IDataBlockPersistence
Methods
ExportState()
Exports the entire registry state as a DataBlockSnapshot.
DataBlockSnapshot ExportState()
Returns
- DataBlockSnapshot
A DataBlockSnapshot containing the complete registry state.
ExportStateAsync(CancellationToken)
Asynchronously exports the entire registry state as a DataBlockSnapshot.
Task<DataBlockSnapshot> ExportStateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task<DataBlockSnapshot>
A DataBlockSnapshot containing the complete registry state.
ImportState(DataBlockSnapshot)
Imports registry state from a DataBlockSnapshot, replacing current state.
void ImportState(DataBlockSnapshot snapshot)
Parameters
snapshotDataBlockSnapshotThe snapshot to restore from.
ImportStateAsync(DataBlockSnapshot, CancellationToken)
Asynchronously imports registry state from a DataBlockSnapshot, replacing current state.
Task ImportStateAsync(DataBlockSnapshot snapshot, CancellationToken cancellationToken = default)
Parameters
snapshotDataBlockSnapshotThe snapshot to restore from.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task