public KafkaTopicWriter( string topic, IProducerFactory producerFactory, IHandle <TKey, TMessage, TResponseKey, TResponse> handle, Func <TResponse, TResponseKey> resolveKey) { _topic = topic; _resolveKey = resolveKey; _stream = handle.Stream; _producer = producerFactory.Create <TResponseKey, TResponse>(_stream.Configuration); }
public HandleAction(Action <IConsumeContext <TKey, TMessage> > handle, INetStream <TKey, TMessage> stream) { _handle = handle; _stream = stream; }
public HandleFunction(Func <IConsumeContext <TKey, TMessage>, TResponse> handle, INetStream <TKey, TMessage> netStream) { _handle = handle; _stream = netStream; }