Is it possible to use Function Middlewares and Hot Chocolate Middlewares to be used together when using Azure Functions in an isolated-process?
Consider Authentication middleware that is defined at a Function level via
IFunctionWorkerMiddleware. When the function is triggered, the Authentication Middleware is triggered and if authentication succeeds, then passes the control to HotChocolate Middleware for Authorization checks, validation checks etc.
both the middleware work in isolation, but when i use them in conjunction, then only the Function Middleware is trigger (as it is the first middleware in the pipeline) but the control is never handed over to HotChocolate middlewares.
I am using HotChocolate
.Net 6 and Function Version