You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
444B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace HealthMonitor.Service.MessageQueue.Kafka
  7. {
  8. public interface IKafkaService
  9. {
  10. Task PublishAsync<T>(string topicName, T message) where T : class;
  11. Task SubscribeAsync<T>(IEnumerable<string> topics, Action<T> messageFunc, CancellationToken cancellationToken = default) where T : class;
  12. }
  13. }