This site is obsolete and should be used for reference only. The information in this documentation is not guaranteed to work for Bot Framework SDK versions past 4.9.1.
Tutorial: Enable proactive notifications
Produce a notification event
The EventProducer project is a console application that sends a sample message to your Event Hubs Instance.
Create an Event Hubs Instance resource
- In your Event Hub Namespace resource, navigate to Entities > Event Hubs
- Select + Event Hub, provide a name and select Create
- Make note of the Event Hub Name for later
- In your Event Hubs Instance resource, navigate to Settings > Shared access policies
- Select + Add, provide a name and select Create
- Make note of the Connection string-primary key for later
Configure the Event Producer project
Update the appSettings.json with the values collected in the last step, as well as a random user id that you will use to test against later.
appSettings.json
{
"EventHubName": "YOUR_EVENT_HUB_INSTANCE_NAME",
"EventHubConnectionString": "YOUR_EVENT_HUB_INSTANCE_CONNECTION_STRING",
"UserId": "YOUR_USER_ID"
}