Steps:
- Clone the project and replace the private members
connectionString
andeventHubName
ofProgram
class inProgram.cs
file. - Build and run the VS solution.
- Go to Azure Portal -> Your Event Hub Namespace -> Your Event Hub -> Process data -> Enable real time insights from events.
- You should see the sample data in your Event Hub like the screenshot below.
Reference: