Ejemplo n.º 1
0
        public Task Unsubscribe(Type eventType, ContextBag context)
        {
            using (var connection = connectionFactory.CreateAdministrationConnection())
                using (var channel = connection.CreateModel())
                {
                    routingTopology.TeardownSubscription(channel, eventType, localQueue);
                }

            return(Task.CompletedTask);
        }
Ejemplo n.º 2
0
        public Task Unsubscribe(MessageMetadata eventType, ContextBag context, CancellationToken cancellationToken = default)
        {
            using (var connection = connectionFactory.CreateAdministrationConnection())
                using (var channel = connection.CreateModel())
                {
                    routingTopology.TeardownSubscription(channel, eventType, localQueue);
                }

            return(Task.CompletedTask);
        }