17 lines
397 B
C#
Raw Normal View History

2025-04-09 14:33:20 +08:00
using Confluent.Kafka;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JiShe.CollectBus.Kafka.Producer
{
2025-04-12 15:11:18 +08:00
public interface IProducerService<TKey, TValue>
2025-04-09 14:33:20 +08:00
{
2025-04-12 15:11:18 +08:00
Task ProduceAsync(string topic, TKey key, TValue value);
Task ProduceAsync(string topic, TValue value);
void Dispose();
2025-04-09 14:33:20 +08:00
}
}