public Task TearDown()
 {
     ConsumerConvention.Register <AsyncConsumerConvention>();
     ConsumerConvention.Register <LegacyConsumerConvention>();
     ConsumerConvention.Register <BatchConsumerConvention>();
     return(TaskUtil.Completed);
 }
        protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            base.ConfigureInMemoryReceiveEndpoint(configurator);

            _receivedA = GetTask <MessageA>();
            _receivedB = GetTask <MessageB>();

            ConsumerConvention.Register <CustomConsumerConvention>();

            configurator.Consumer(typeof(CustomHandler), type => new CustomHandler(_receivedA, _receivedB));
        }
Пример #3
0
 static ConsumerConventionCache()
 {
     ConsumerConvention.Register <AsyncConsumerConvention>();
     ConsumerConvention.Register <BatchConsumerConvention>();
     ConsumerConvention.Register <JobConsumerConvention>();
 }
Пример #4
0
 static ConsumerConventionCache()
 {
     ConsumerConvention.Register <AsyncConsumerConvention>();
     ConsumerConvention.Register <LegacyConsumerConvention>();
 }