kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sugumar J <mail.sugu...@gmail.com>
Subject Kafka net Synchronous Producer
Date Fri, 25 Sep 2015 14:56:40 GMT
Dear all,

I am trying to send message to kafka using kafka-Net (c#).

I want to send message synchronously

i am using below code to achieve this


*var x= client.SendMessageAsync("dynamictopic1", new[] { message });*
*var response = await x;*

Now the response contains the offset details

If i am using .wait() methods its return only bool not offset detail

Is there any way to achieve to send message synchronously without using
await keyword


Thanks,
Sugumar J

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message