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())); }
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; }