Beispiel #1
0
 public HealthCheckKafka(IConsumer <Ignore, string> consumer, IMessageQueueInfo info, int healthCheckInterval = 1) : base(healthCheckInterval)
 {
     _consumer  = consumer;
     _queueName = info.GetTopicName(typeof(T));
 }
Beispiel #2
0
 public async Task Send <TMessage>(TMessage message) where TMessage : MessageBase
 {
     await Send(message, _info.GetTopicName(message.GetType()));
 }