public void Handle(NetMQFrame[] sender, NetMQMessage message) { Log.Debug("[CommitHandler] Got a commit to write..."); var requestId = message.Pop(); var commit = getCommit(message); var task = _writer.Store(commit); var commitContinuationContext = new CommitContinuationContext(sender, commit.CommitId, requestId); task.ContinueWith(onComplete, commitContinuationContext, TaskContinuationOptions.ExecuteSynchronously); Log.Debug("[CommitHandler] Commit queued up..."); }
public CommitResult(string protocol, CommitContinuationContext context, ErrorEntry error) { _protocol = protocol; _context = context; _error = error; }