Example #1
0
            public Task Produce <T>(IEnumerable <object> values, IPipe <EventHubSendContext <T> > pipe, CancellationToken cancellationToken = default)
                where T : class
            {
                var sendPipeAdapter = new ConsumeSendPipeAdapter <T>(pipe, _consumeContext);

                return(_producer.Produce(values, sendPipeAdapter, cancellationToken));
            }
Example #2
0
            public Task Produce <T>(T message, IPipe <EventHubSendContext <T> > pipe, CancellationToken cancellationToken = default)
                where T : class
            {
                var sendPipeAdapter = new ConsumeSendPipeAdapter <T>(pipe, _consumeContext);

                return(_producer.Produce(message, sendPipeAdapter, cancellationToken));
            }
Example #3
0
            public Task Produce(TKey key, object values, IPipe <KafkaSendContext <TKey, TValue> > pipe, CancellationToken cancellationToken = default)
            {
                var sendPipeAdapter = new ConsumeSendPipeAdapter(pipe, _consumeContext);

                return(_producer.Produce(key, values, sendPipeAdapter, cancellationToken));
            }