Beispiel #1
0
        protected virtual void RaiseSubscriptionAdded(WampSubscriptionAddEventArgs e)
        {
            EventHandler <WampSubscriptionAddEventArgs> handler = SubscriptionAdded;

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

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

                handler(this, args);
            }
        }
Beispiel #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;
                }
            }
        }
Beispiel #4
0
 protected virtual void RaiseSubscriptionAdded(WampSubscriptionAddEventArgs e)
 {
     SubscriptionAdded?.Invoke(this, e);
 }
Beispiel #5
0
 private void OnSubscriberSubscriptionAdding(object sender, WampSubscriptionAddEventArgs e)
 {
     RaiseSubscriptionAdding(e);
 }