From the course: Azure Functions for Developers

Unlock the full course today

Join today to access over 25,100 courses taught by industry experts.

Registering the middleware in the pipeline and testing the application

Registering the middleware in the pipeline and testing the application - Azure Tutorial

From the course: Azure Functions for Developers

Registering the middleware in the pipeline and testing the application

- [Instructor] Okay, so now let's register the safe-browsing Middleware in the pipeline. To do that, let's open up program and we're going to implement the code here. As you can see, we have the configure functions web application invocation, and this is actually the place that I'm going to use, however you have other option, which is configure functions worker defaults. You want to use this when you're not using the asp.net core integration, which I do, that's why I'm going to use configure functions web application. So here I want to pass this Lambda, and this is of type I functions worker application builder and in this type we can find use Middleware. This is similar to the method that we can use in asp.net on the core. However, we also have use when both generic and regular method and I'm going to use that because it allows me to execute Middlewares conditionally. In other words, I want that because I want to execute the Middleware only for the register function. Remember that we…

Contents