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