示例#1
0
        private static TcpPackage WrapReadEventCompleted(ClientMessage.ReadEventCompleted msg)
        {
            var dto = new ReadEventCompleted(
                (ReadEventCompleted.Types.ReadEventResult)msg.Result,
                new ResolvedIndexedEvent(msg.Record.Event, msg.Record.Link), msg.Error);

            return(new TcpPackage(TcpCommand.ReadEventCompleted, msg.CorrelationId, dto.Serialize()));
        }
示例#2
0
 public ReadEventCompleted(ReadEventCompleted.ReadEventResult result, ResolvedIndexedEvent @event, string error)
 {
     Result = result;
     Event = @event;
     Error = error;
 }
 public ReadEventCompleted(ReadEventCompleted.ReadEventResult result, ResolvedIndexedEvent @event)
 {
     Result = result;
     Event = @event;
 }