Exemplo n.º 1
0
        public UnsubscribeAction SubscribedTo <TMessage>(Uri endpointUri)
            where TMessage : class
        {
            var info = new SubscriptionInformation(_clientId, _sequence.Next(), typeof(TMessage), endpointUri);

            return(SendAddSubscription(info));
        }
Exemplo n.º 2
0
        public RouteAction Handle(ICall call)
        {
            call.AssignSequenceNumber(_generator.Next());
            _callCollection.Add(call);

            return(RouteAction.Continue());
        }