Exemplo n.º 1
0
        private void RaiseSubscriptionAddedEventHandler(SubscriptionToken token)
        {
            var handler = OnSubscriptionAdded;

            if (handler == null)
            {
                return;
            }
            try
            {
                handler(this, new SubscriptionsChangedEventArgs(token));
            }
            catch
            {
                /* intentionally left blank */
            }
        }
Exemplo n.º 2
0
        private void RaiseSubscriptionRemovedEventHandler(SubscriptionToken token)
        {
            var handler = OnSubscriptionRemoved;

            if (handler == null)
            {
                return;
            }
            try
            {
                handler(this, new SubscriptionsChangedEventArgs(token));
            }
            catch (Exception ex)
            {
                Debug.WriteLine($"Event handler for subscription removal throws {ex.GetType().Name}: {ex.Message}");
            }
        }