public void Handle(ClientMessage.SubscriptionDropped message) { IEmbeddedSubscription subscription; _subscriptions.TryGetActiveSubscription(message.CorrelationId, out subscription); subscription.DropSubscription(message.Reason); }
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())); }
private TcpPackage WrapSubscriptionDropped(ClientMessage.SubscriptionDropped msg) { var dto = new ClientMessageDto.SubscriptionDropped(msg.CorrelationId, msg.EventStreamId); return(new TcpPackage(TcpCommand.SubscriptionDropped, msg.CorrelationId, dto.Serialize())); }