private Task ChangeRoleAsync(IntPtr nativeEpoch, NativeTypes.FABRIC_REPLICA_ROLE nativeRole, CancellationToken cancellationToken) { Epoch epoch = Epoch.FromNative(nativeEpoch); ReplicaRole replicaRole = (ReplicaRole)nativeRole; return(this.replicator.ChangeRoleAsync(epoch, replicaRole, cancellationToken)); }
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)); }