Exercise 1 – publishing and subscribing from a .NET app to Event Grid events
In this exercise, we can use either Visual Studio Code or Visual Studio 2022 to create a console .NET application. We will work through the following steps:
- Creating an Event Grid.
- Creating a .NET Console project.
- Making some modifications to the program class to be able to connect to Event Grid.
- Publishing new events to the Event Grid.
We will start by creating an Event Grid topic in the next section.
Creating an Event Grid topic
An Event Grid topic is a channel for related events (for example, storage events or inventory events).
An Event Grid topic provides an endpoint to which sources send events. A publisher creates an Event Grid topic and decides whether the event source requires one topic or multiple topics. Topics are used for collections of related events. Subscribers decide which topics to subscribe to so they can respond to particular types of events.
...