Table of Contents

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

cancellationToken CancellationToken

A 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

snapshot DataBlockSnapshot

The 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

snapshot DataBlockSnapshot

The snapshot to restore from.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task