17 lines
410 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-15 11:15:42 +08:00
public interface IProducerService
2025-04-09 14:33:20 +08:00
{
2025-04-15 11:15:42 +08:00
Task ProduceAsync<TKey, TValue>(string topic, TKey key, TValue value);
Task ProduceAsync<TKey,TValue>(string topic, TValue value);
2025-04-12 15:11:18 +08:00
void Dispose();
2025-04-09 14:33:20 +08:00
}
}