using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NearCardAttendance.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; } }