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));
        }
Ejemplo n.º 3
0
 static ConsumerConventionCache()
 {
     ConsumerConvention.Register <AsyncConsumerConvention>();
     ConsumerConvention.Register <BatchConsumerConvention>();
     ConsumerConvention.Register <JobConsumerConvention>();
 }
Ejemplo n.º 4
0
 static ConsumerConventionCache()
 {
     ConsumerConvention.Register <AsyncConsumerConvention>();
     ConsumerConvention.Register <LegacyConsumerConvention>();
 }