vikramadhav
Posts: 2
Joined: Fri Aug 14, 2015 4:25 am

Constant Polling application for Event Hub as Receiver

Fri Aug 14, 2015 9:24 am

Folks ,

i need your guidance , first thought for this thinking building a background job but have layman experience in App World, i trying to build a windows app which will constant poll from event hub as Receiver. As thanks to Microsoft there is no support for Service Bus SDK. i am using SBLite as of now

How can i constantly poll message from event hub.

haroldpulcher
Posts: 58
Joined: Tue Jun 09, 2015 8:08 pm
Contact: Website

Re: Constant Polling application for Event Hub as Receiver

Fri Aug 14, 2015 2:54 pm

Go here:
https://azure.microsoft.com/en-us/docum ... etstarted/

This demo does what you are asking. It implements IEventProcessor, which after fired up will continuously poll for the new info from the event hub.

I did this last night. In the same solution I have both the reader and the writer. Fired up the writer, then started sending data. Fired up the reader and data just started showing up. As a test fired up a second reader, and it was getting data from the same feed. Sorta neat.

vikramadhav
Posts: 2
Joined: Fri Aug 14, 2015 4:25 am

Re: Constant Polling application for Event Hub as Receiver

Mon Aug 17, 2015 5:12 am

Thanks for your reply,

but currently there is no support for Azure.ServiceBus namespace in IoT Core. the only workaround is right now is polling via REST with a worker thread. but that's not feasible as there has to be a custom implementation retry mechanism for receive method.

haroldpulcher
Posts: 58
Joined: Tue Jun 09, 2015 8:08 pm
Contact: Website

Re: Constant Polling application for Event Hub as Receiver

Mon Aug 17, 2015 11:44 am

Ran into the same problem over the weekend while working up a talk on this very subject.

There are a couple of guys out there that have written send/recieve eventhub, but for the most part they are just doing a constant poll to get results.

There has to be a better way.

Will let you know if I find/code one.

Return to “Windows 10 for IoT”