|
123456789101112131415 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace HealthMonitor.Service.MessageQueue.Kafka
- {
- public interface IKafkaService
- {
- Task PublishAsync<T>(string topicName, T message) where T : class;
-
- Task SubscribeAsync<T>(IEnumerable<string> topics, Action<T> messageFunc, CancellationToken cancellationToken = default) where T : class;
- }
- }
|