Beispiel #1
0
 /// <summary>
 /// Called when a replication operation needs to be applied by the state provider.
 /// It is called on the primary to perform undo stream drain processing and
 /// on the secondary to perform replication stream drain processing.
 /// </summary>
 /// <param name="operation">Operation to apply.</param>
 /// <param name="cancellationToken">Propagates notification that operation should be canceled.</param>
 /// <returns></returns>
 protected abstract Task OnReplicationOperationAsync(IOperationEx operation, CancellationToken cancellationToken);
Beispiel #2
0
 /// <summary>
 /// Called when a copy operation needs to be applied by the state provider.
 /// It is called on the secondary to perform copy stream drain processing.
 /// </summary>
 /// <param name="operation">Operation to apply.</param>
 /// <param name="cancellationToken">Propagates notification that operation should be canceled.</param>
 /// <returns></returns>
 protected abstract Task OnCopyOperationAsync(IOperationEx operation, CancellationToken cancellationToken);