コード例 #1
0
        protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            base.ConfigureInMemoryReceiveEndpoint(configurator);

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

            ConsumerConvention.Remove <AsyncConsumerConvention>();
            ConsumerConvention.Remove <LegacyConsumerConvention>();

            configurator.Consumer(typeof(DefaultHandlers), type => new DefaultHandlers(_receivedA, _receivedB));
        }
コード例 #2
0
 public Task TearDown()
 {
     ConsumerConvention.Remove <CustomConsumerConvention>();
     return(TaskUtil.Completed);
 }