コード例 #1
0
        public void Unsubscribe(Subsciption subsciption)
        {
            PullSubscription pullSubscription = (PullSubscription)subsciption;

            _handler.Unbind(pullSubscription);
            _deliveryServer.RemoveSubscription(pullSubscription);
            _subscriptions.Remove(subsciption.Identifier);
            subsciption.Dispose();
        }
コード例 #2
0
 public Subsciption Subscribe(Filter filter, 
    IEnumerable<Selector> selectors, 
    Expires expires,
    EndpointAddressBuilder susbcriptionManagerEndpointAddress)
 {         
    PullSubscription subscription = new PullSubscription(Guid.NewGuid().ToString(), _deliveryResourceUri, _eventType, filter, expires, selectors, this);
    _handler.Bind(subscription, susbcriptionManagerEndpointAddress);         
    _deliveryServer.AddSubscription(subscription);         
    _subscriptions[subscription.Identifier] = subscription;
    return subscription;
 }
コード例 #3
0
        public Subsciption Subscribe(Filter filter,
                                     IEnumerable <Selector> selectors,
                                     Expires expires,
                                     EndpointAddressBuilder susbcriptionManagerEndpointAddress)
        {
            PullSubscription subscription = new PullSubscription(Guid.NewGuid().ToString(), _deliveryResourceUri, _eventType, filter, expires, selectors, this);

            _handler.Bind(subscription, susbcriptionManagerEndpointAddress);
            _deliveryServer.AddSubscription(subscription);
            _subscriptions[subscription.Identifier] = subscription;
            return(subscription);
        }
コード例 #4
0
 public void RemoveSubscription(PullSubscription subscription)
 {
    _subscriptions.Remove(subscription.Identifier);
 }
コード例 #5
0
 public void AddSubscription(PullSubscription subscription)
 {
    _subscriptions[subscription.Identifier] = subscription;
 }
コード例 #6
0
 public void RemoveSubscription(PullSubscription subscription)
 {
     _subscriptions.Remove(subscription.Identifier);
 }
コード例 #7
0
 public void AddSubscription(PullSubscription subscription)
 {
     _subscriptions[subscription.Identifier] = subscription;
 }