Exemplo n.º 1
0
 private TcpPackage WrapStreamEventAppeared(ClientMessage.StreamEventAppeared msg)
 {
     var dto = new TcpClientMessageDto.StreamEventAppeared(msg.EventNumber, msg.Event, msg.CommitPosition);
     return new TcpPackage(TcpCommand.StreamEventAppeared, msg.CorrelationId, dto.Serialize());
 }
Exemplo n.º 2
0
 private TcpPackage WrapStreamEventAppeared(ClientMessage.StreamEventAppeared msg)
 {
     var dto = new TcpClientMessageDto.StreamEventAppeared(new TcpClientMessageDto.ResolvedEvent(msg.Event));
     return new TcpPackage(TcpCommand.StreamEventAppeared, msg.CorrelationId, dto.Serialize());
 }