public void Unsubscribe <T, TH>() where T : IntegrationEvent where TH : IIntegrationEventHandler <T> { var eventName = _subscriptionManager.GetEventKey <T>(); _subscriptionManager.RemoveSubscription <T, TH>(); }
public void Unsubscribe <T, TH>() where T : IntegrationEvent where TH : IIntegrationEventHandler <T> { var eventName = _subscriptionManager.GetEventKey <T>(); _logger.LogInformation($"Removendo assinatura de {eventName}"); _subscriptionManager.RemoveSubscription <T, TH>(); }
public void Unsubscribe <T, TH>() where T : IntegrationEvent where TH : IIntegrationEventHandler <T> { var eventName = subscriptionManager.GetEventKey <T>(); logger.LogInformation($"Unsubscribing from event {eventName}"); subscriptionManager.RemoveSubscription <T, TH>(); }
public void Unsubscribe <TEvent, THandler>(string keyOverride = null) where TEvent : IIntegrationEvent where THandler : IIntegrationEventHandler <TEvent> { var eventName = string.IsNullOrWhiteSpace(keyOverride) ? _busSubscriptionManager.GetEventKey <TEvent>() : keyOverride; _logger.LogInformation($"Socket subscription manager: unsubscribed from: {eventName}"); _busSubscriptionManager.RemoveSubscription <TEvent, THandler>(); _subscriptionKeys.Remove(eventName); }
public void Unsubscribe <T, TH>() where T : IntegrationEvent where TH : IIntegrationEventHandler <T> { var eventName = typeof(T).Name.Replace(IntegrationEventSuffix, ""); try { _subscriptionClient .RemoveRuleAsync(eventName) .GetAwaiter() .GetResult(); } catch (MessagingEntityNotFoundException) { } _subsManager.RemoveSubscription <T, TH>(); }
public void Unsubscribe <T, TH>() where T : IntegrationEvent where TH : IIntegrationEventHandler <T> { var eventName = typeof(T).Name.Replace(INTEGRATION_EVENT_SUFIX, ""); try { _subscriptionClient.RemoveRuleAsync(eventName) .GetAwaiter() .GetResult(); } catch (MessagingEntityNotFoundException) { _logger.LogInformation($"The messaging entity { eventName } could not be found!! "); } _subscriptionManager.RemoveSubscription <T, TH>(); }
public void Unsubscribe <T, TH>() where T : IntegrationEvent where TH : IIntegrationEventHandler <T> { _subsManager.RemoveSubscription <T, TH>(); }
public void Unsubscribe <TIntegrationEvent, TIntegrationEventHandler>() where TIntegrationEvent : IIntegrationEvent where TIntegrationEventHandler : IIntegrationEventHandler <TIntegrationEvent> { _subscriptionManager.RemoveSubscription <TIntegrationEvent, TIntegrationEventHandler>(); }
public void Unsubscribe <E, EH>() where E : IntegrationEvent where EH : IIntegrationEventHandler <E> { _subscriptionManager.RemoveSubscription <E, EH>(); }
public void Unsubscribe <TEvent, THandler>() where TEvent : Event where THandler : IEventHandler <TEvent> { _evSubscriptionManager.RemoveSubscription <TEvent, THandler>(); }