From the course: ASP.NET Core: Communication Management

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding an event webhook in ASP.NET Core

Adding an event webhook in ASP.NET Core - ASP.NET Core Tutorial

From the course: ASP.NET Core: Communication Management

Start my 1-month free trial

Adding an event webhook in ASP.NET Core

- [Instructor] Now that you have set up the Angie Rock in your local develop on the environment, let us set up a WebHook, API end point in the project. For that let's go to visual studio. In here before you write any code let us talk about a couple of changes that I've made. So if you go to solution Explorer in the models folder you going to go see two models, the email model which we are going to use to store our data in the database and the SendGrid events model which you are going to use to handle the WebHook API requests. Next, if you go to the Startup.cs, you're going to see that in here we have configured the AppDbContext file and this is the context file to use the entity framework to interact with database. And we are using an InMemoryDatabase named CommunicationManagement. If you go to the AppDbContext file, so just go to definition, here you can see that it has a single DB set because we have a single…

Contents