17 lines
397 B
C#
17 lines
397 B
C#
using Confluent.Kafka;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace JiShe.CollectBus.Kafka.Producer
|
|
{
|
|
public interface IProducerService<TKey, TValue>
|
|
{
|
|
Task ProduceAsync(string topic, TKey key, TValue value);
|
|
Task ProduceAsync(string topic, TValue value);
|
|
void Dispose();
|
|
}
|
|
}
|