Ejemplo n.º 1
0
        protected virtual void RaiseSubscriptionAdded(WampSubscriptionAddEventArgs e)
        {
            EventHandler <WampSubscriptionAddEventArgs> handler = SubscriptionAdded;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
        protected virtual void RaiseSubscriptionAdded(RemoteWampTopicSubscriber subscriber, SubscribeOptions options)
        {
            EventHandler <WampSubscriptionAddEventArgs> handler = SubscriptionAdded;

            if (handler != null)
            {
                WampSubscriptionAddEventArgs args = GetAddEventArgs(subscriber, options);

                handler(this, args);
            }
        }
Ejemplo n.º 3
0
        private void OnSubscriptionAdded(object sender, WampSubscriptionAddEventArgs e)
        {
            if (e.Options.GetRetained == true)
            {
                foreach (RetainedEvent retainedEvent in mRetainedEvents)
                {
                    if (retainedEvent.Options.IsEligible(e.Subscriber))
                    {
                        retainedEvent.Publish(e.Subscriber);
                    }

                    break;
                }
            }
        }
Ejemplo n.º 4
0
 protected virtual void RaiseSubscriptionAdded(WampSubscriptionAddEventArgs e)
 {
     SubscriptionAdded?.Invoke(this, e);
 }
Ejemplo n.º 5
0
 private void OnSubscriberSubscriptionAdding(object sender, WampSubscriptionAddEventArgs e)
 {
     RaiseSubscriptionAdding(e);
 }