Esempio n. 1
0
        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()));
        }
Esempio n. 2
0
        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()));
        }