Dela via


KeyValueStoreReplica.OnDataLossAsync(CancellationToken) Method

Definition

Signals that the replica set may have experienced data loss. The application can either override this method to process the event asynchronously or use the DataLossReported event to process synchronously. Both represent the same event.

protected virtual System.Threading.Tasks.Task<bool> OnDataLossAsync (System.Threading.CancellationToken cancellationToken);
abstract member OnDataLossAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.OnDataLossAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected Overridable Function OnDataLossAsync (cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

cancellationToken
CancellationToken

The token used to check for cancellation of the operation.

Returns

True to indicate that data was modified during recovery and the replica set needs to be resynchronized. Otherwise, false to indicate that data has not been modified.

Applies to