Exemple #1
0
        private Task UpdateEpochAsync(IntPtr nativeEpoch, CancellationToken cancellationToken)
        {
            Epoch epoch = Epoch.FromNative(nativeEpoch);

            return(this.replicator.UpdateEpochAsync(epoch, cancellationToken));
        }
        private Task UpdateEpochHelper(IntPtr nativeEpoch, long previousEpochLastSequenceNumber, CancellationToken cancellationToken)
        {
            Epoch epoch = Epoch.FromNative(nativeEpoch);

            return(this.stateProvider.UpdateEpochAsync(epoch, previousEpochLastSequenceNumber, cancellationToken));
        }
 Task IReplicator.ChangeRoleAsync(Epoch epoch, ReplicaRole role, CancellationToken cancellationToken)
 {
     return(this.ChangeRoleAsyncHelper(epoch, role, cancellationToken));
 }
 Task IReplicator.UpdateEpochAsync(Epoch epoch, CancellationToken cancellationToken)
 {
     return(this.UpdateEpochAsyncHelper(epoch, cancellationToken));
 }
 /// <summary>This supports the Service Fabric infrastructure and is not meant to be used directly from your code.</summary>
 /// <param name="epoch">
 /// <para>This supports the Service Fabric infrastructure and is not meant to be used directly from your code.</para>
 /// </param>
 /// <param name="cancellationToken">
 /// <para>The <see cref="System.Threading.CancellationToken" /> object that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation might still be completed even if it is canceled.</para>
 /// </param>
 /// <returns>
 /// <para>This supports the Service Fabric infrastructure and is not meant to be used directly from your code.</para>
 /// </returns>
 Task IReplicator.UpdateEpochAsync(Epoch epoch, CancellationToken cancellationToken)
 {
     return(this.internalReplicator.UpdateEpochAsync(epoch, cancellationToken));
 }