Relative Content

Tag Archive for .net-8.0azure-functions-isolated

Why doesn’t the HttpResponseData work when inherited in response class?

I’m upgrading to .net 8 isolated model and I have a couple of http triggers that should write a message to a servicebus queue and send back a response message. I have created a response class where I inherit the HttpResponseData parameter. I can pass in values and when I make a call to the endpoint I get a 204 No content response.
When I remove the inheritance and add the HttpResponseData in the response class it works like a charm. In both cases the message is written to the servicebus queue.