private TcpPackage WrapPersistentSubscriptionStreamEventAppearedV1( ClientMessage.PersistentSubscriptionStreamEventAppeared msg) { var dto = new TcpClientMessageDto.PersistentSubscriptionStreamEventAppeared( ConvertToResolvedIndexedEventV1(msg.Event), msg.RetryCount); return(new TcpPackage(TcpCommand.PersistentSubscriptionStreamEventAppeared, msg.CorrelationId, dto.Serialize())); }
private TcpPackage WrapPersistentSubscriptionStreamEventAppeared(ClientMessage.PersistentSubscriptionStreamEventAppeared msg) { var dto = new TcpClientMessageDto.PersistentSubscriptionStreamEventAppeared(new TcpClientMessageDto.ResolvedIndexedEvent(msg.Event.Event, msg.Event.Link)); return(new TcpPackage(TcpCommand.PersistentSubscriptionStreamEventAppeared, msg.CorrelationId, dto.Serialize())); }