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