private void RaiseSubscriptionAddedEventHandler(SubscriptionToken token) { var handler = OnSubscriptionAdded; if (handler == null) { return; } try { handler(this, new SubscriptionsChangedEventArgs(token)); } catch { /* intentionally left blank */ } }
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}"); } }