Use one of the applications under this directory to send example data to Event Hub.
##Node.js
-
Modify app.js to include your ServiceBus namespace, Event Hub name, and the Shared Access policy and key that is used to write to it.
-
Install modules.
npm install
-
Run.
node app.js Each time you run this command, ten events with random temperature data are sent to Event Hub.
##.NET
- Modify the App.config to include the endpoint connection string for the Event Hub SAS used to send messages.
-
Modify Program.cs to include your ServiceBus namespace, Event Hub name, and the Shared Access policy and key that is used to write to it.
-
Run. It will emit events for as long as it is left open.