private void OnConnectorSubscriptionStarted(Subscription subscription) { if (_subscriptions.ContainsKey(subscription)) { SubscriptionStarted?.Invoke(subscription); } }
private void RaiseSubscriptionStarted(Subscription subscription) { if (subscription == null) { throw new ArgumentNullException(nameof(subscription)); } SubscriptionStarted?.Invoke(subscription); }