public void Handle(ClientMessage.SubscriptionDropped message)
        {
            IEmbeddedSubscription subscription;

            _subscriptions.TryGetActiveSubscription(message.CorrelationId, out subscription);
            subscription.DropSubscription(message.Reason);
        }
Пример #2
0
        private TcpPackage WrapSubscriptionDropped(ClientMessage.SubscriptionDropped msg)
        {
            var dto = new TcpClientMessageDto.SubscriptionDropped(
                (TcpClientMessageDto.SubscriptionDropped.SubscriptionDropReason)msg.Reason);

            return(new TcpPackage(TcpCommand.SubscriptionDropped, msg.CorrelationId, dto.Serialize()));
        }
Пример #3
0
        private TcpPackage WrapSubscriptionDropped(ClientMessage.SubscriptionDropped msg)
        {
            var dto = new ClientMessageDto.SubscriptionDropped(msg.CorrelationId, msg.EventStreamId);

            return(new TcpPackage(TcpCommand.SubscriptionDropped, msg.CorrelationId, dto.Serialize()));
        }