/// <summary> /// Choose the communication channel provider. /// </summary> /// <param name="channel">The channel provider.</param> /// <returns></returns> IConsumerOptionsBuilder IConsumerBuilder.UseChannel( IConsumerChannelProvider channel) { var prms = _plan.WithChannel(channel); var result = new ConsumerBuilder(prms); return(result); }
public EndToEndTests(ITestOutputHelper outputHelper) { _outputHelper = outputHelper; // _serializer = new JsonDataSerializer(); ch = Channel.CreateUnbounded <Announcement>(); _producerChannel = new ProducerTestChannel(ch); _consumerChannel = new ConsumerTestChannel(ch); }
//------------------------------------------ #region WithChannel /// <summary> /// Attach the channel. /// </summary> /// <param name="channel">The channel.</param> /// <returns></returns> internal ConsumerPlan WithChannel(IConsumerChannelProvider channel) { return(new ConsumerPlan(this, channel: channel)); }