コード例 #1
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;
 }
コード例 #2
0
ファイル: PullSubscription.cs プロジェクト: nickchal/pash
 public PullSubscription(string identifier, string deliveryUri, Type eventType, Filter filter, Expires expires, IEnumerable<Selector> selectors, ISubscriptionManager manager) 
    : base(identifier, deliveryUri, eventType, filter, expires, selectors, manager)
 {
 }