private static TcpPackage WrapTransactionStartCompleted(ClientMessage.TransactionStartCompleted msg)
 {
     var dto = new TcpClientMessageDto.TransactionStartCompleted(msg.TransactionId, msg.EventStreamId, (int)msg.ErrorCode, msg.Error);
     return new TcpPackage(TcpCommand.TransactionStartCompleted, msg.CorrelationId, dto.Serialize());
 }
 private static TcpPackage WrapTransactionStartCompleted(ClientMessage.TransactionStartCompleted msg)
 {
     var dto = new TcpClientMessageDto.TransactionStartCompleted(msg.TransactionId, (TcpClientMessageDto.OperationResult) msg.Result, msg.Message);
     return new TcpPackage(TcpCommand.TransactionStartCompleted, msg.CorrelationId, dto.Serialize());
 }