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)); }
public Task TearDown() { ConsumerConvention.Remove <CustomConsumerConvention>(); return(TaskUtil.Completed); }