protected override void CompleteSuccessRequest(long firstEventNumber, long lastEventNumber, long preparePosition, long commitPosition)
        {
            base.CompleteSuccessRequest(firstEventNumber, lastEventNumber, preparePosition, commitPosition);
            var responseMsg = new ClientMessage.DeleteStreamCompleted(ClientCorrId, OperationResult.Success, null, preparePosition, commitPosition);

            ResponseEnvelope.ReplyWith(responseMsg);
        }
        protected override void CompleteFailedRequest(OperationResult result, string error, long currentVersion = -1)
        {
            base.CompleteFailedRequest(result, error, currentVersion);
            var responseMsg = new ClientMessage.DeleteStreamCompleted(ClientCorrId, result, error);

            ResponseEnvelope.ReplyWith(responseMsg);
        }
Exemplo n.º 3
0
        protected override void CompleteSuccessRequest(int firstEventNumber, int lastEventNumber)
        {
            base.CompleteSuccessRequest(firstEventNumber, lastEventNumber);
            var responseMsg = new ClientMessage.DeleteStreamCompleted(ClientCorrId, OperationResult.Success, null);

            ResponseEnvelope.ReplyWith(responseMsg);
        }
Exemplo n.º 4
0
        protected override void CompleteFailedRequest(OperationResult result, string error)
        {
            base.CompleteFailedRequest(result, error);
            var responseMsg = new ClientMessage.TransactionCommitCompleted(ClientCorrId, _transactionId, result, error);

            ResponseEnvelope.ReplyWith(responseMsg);
        }
Exemplo n.º 5
0
        protected override void CompleteSuccessRequest(int firstEventNumber, int lastEventNumber, long preparePosition, long commitPosition)
        {
            base.CompleteSuccessRequest(firstEventNumber, lastEventNumber, preparePosition, commitPosition);
            var responseMsg = new ClientMessage.TransactionCommitCompleted(ClientCorrId, _transactionId, firstEventNumber, lastEventNumber, preparePosition, commitPosition);

            ResponseEnvelope.ReplyWith(responseMsg);
        }
        protected override void CompleteSuccessRequest(int firstEventNumber)
        {
            base.CompleteSuccessRequest(firstEventNumber);
            var responseMsg = new ClientMessage.TransactionCommitCompleted(ClientCorrId, TransactionPosition, OperationResult.Success, null);

            ResponseEnvelope.ReplyWith(responseMsg);
        }
Exemplo n.º 7
0
 protected override void CompleteSuccessRequest(long firstEventNumber, long lastEventNumber,
                                                long preparePosition, long commitPosition)
 {
     base.CompleteSuccessRequest(firstEventNumber, lastEventNumber, preparePosition, commitPosition);
     ResponseEnvelope.ReplyWith(new ClientMessage.WriteEventsCompleted(ClientCorrId, firstEventNumber,
                                                                       lastEventNumber, preparePosition, commitPosition));
 }
Exemplo n.º 8
0
 protected override void CompleteFailedRequest(OperationResult result, string error, long currentVersion = -1)
 {
     base.CompleteFailedRequest(result, error, currentVersion);
     ResponseEnvelope.ReplyWith(new ClientMessage.WriteEventsCompleted(ClientCorrId, result, error, currentVersion));
 }
 protected override void CompleteSuccessRequest(int firstEventNumber)
 {
     base.CompleteSuccessRequest(firstEventNumber);
     ResponseEnvelope.ReplyWith(new ClientMessage.WriteEventsCompleted(ClientCorrId, firstEventNumber));
 }