public Task <IReplicator> OpenAsync(ReplicaOpenMode openMode, IStatefulServicePartition partition, CancellationToken cancellationToken)
        {
            LogMessage(nameof(OpenAsync));

            log = new InMemoryLog(LogMessage);

            replicator = partition.CreateReplicator(this, new ReplicatorSettings());

            return(Task.FromResult((IReplicator)replicator));
        }
 public CopyStateOperationStream(InMemoryLog log, long startLsn, long endLsn)
 {
     this.log      = log;
     this.startLsn = startLsn;
     this.endLsn   = endLsn;
 }