Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 public EndToEndTests(ITestOutputHelper outputHelper)
 {
     _outputHelper = outputHelper;
     // _serializer = new JsonDataSerializer();
     ch = Channel.CreateUnbounded <Announcement>();
     _producerChannel = new ProducerTestChannel(ch);
     _consumerChannel = new ConsumerTestChannel(ch);
 }
Beispiel #3
0
        //------------------------------------------

        #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));
        }