예제 #1
0
        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));
        }
예제 #2
0
        private Task UpdateEpochAsync(IntPtr nativeEpoch, CancellationToken cancellationToken)
        {
            Epoch epoch = Epoch.FromNative(nativeEpoch);

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

            return(this.stateProvider.UpdateEpochAsync(epoch, previousEpochLastSequenceNumber, cancellationToken));
        }