示例#1
0
        public void OneSubscription()
        {
            _configuration.Consumes(new FakeConsumer(_ => null));
            var args          = FakeBasicDeliverEventArgs();
            var message       = new FakeConsumedMessage(new Foo(), args);
            var subscriptions = _configuration.FindSubscriptions(message);

            Assert.Single(subscriptions);
        }
示例#2
0
        protected internal virtual Task <AggregateConsumingResult> ConsumeAsync(BasicDeliverEventArgs args)
        {
            var message = _builder.Build(args);

            return(message.ConsumeAsync(Configuration.FindSubscriptions(message)));
        }