/// <inheritdoc /> public bool UnSubscribeFromGatewayNotificationEvents(IGatewayListListener listener) { this.subscribers.TryRemove(listener, out listener); return(true); }
/// <inheritdoc /> public bool UnSubscribeFromGatewayNotificationEvents(IGatewayListListener subscriber) { this.log.Debug($"Unsubscribing {subscriber} from gateway notification events."); this.subscribers.TryRemove(subscriber, out subscriber); return(true); }
/// <inheritdoc /> public bool SubscribeToGatewayNotificationEvents(IGatewayListListener subscriber) { this.subscribers.TryAdd(subscriber, subscriber); return(true); }
/// <inheritdoc /> public bool SubscribeToGatewayNotificationEvents(IGatewayListListener subscriber) { this.log.Debug($"Subscribing {subscriber} to gateway notification events."); this.subscribers.TryAdd(subscriber, subscriber); return(true); }