예제 #1
0
        public void Unsubscribe <T, TH>()
            where T : IntegrationEvent
            where TH : IIntegrationEventHandler <T>
        {
            var eventName = _subscriptionManager.GetEventKey <T>();

            _subscriptionManager.RemoveSubscription <T, TH>();
        }
예제 #2
0
        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>();
        }
예제 #3
0
        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>();
        }
예제 #4
0
        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>();
        }
예제 #6
0
        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>();
        }
예제 #7
0
 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>();
 }
예제 #9
0
 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>();
 }