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; }
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) { }