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(string topicName, T message) where T : class; Task SubscribeAsync(IEnumerable topics, Action messageFunc, CancellationToken cancellationToken = default) where T : class; } }