Open Fazer01 opened 7 months ago
Similar conversation in the durable function repo:
https://github.com/Azure/azure-functions-durable-extension/issues/2717#issuecomment-1887987410
Similar conversation in the durable function repo:
Having read that thread, I'm none the wiser. I can't find a single example of how to call a durable function with a JSON body that both compiles and contains a non-empty request Body.
Description
When using
.ConfigureFunctionsWebApplication()
instead of.ConfigureFunctionsWorkerDefaults()
(following https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide?tabs=windows#aspnet-core-integration) and we have an http trigger endpoint to start an orchestration like the following:The line
return client.CreateCheckStatusResponse(req, instanceId);
gives a compile error, becausereq
is not anHttpRequestData
type. We would really love to use the ASP.NET Core integration to use normal .NET 8 types instead of using the built-in Function HTTP (HttpRequestData
andHttpResponseData
) types.Looking forward to hear from you guys, Regards,
Tom
If this is not the right repository to mention the issue, my apologies
Steps to reproduce
Use the Durable Functions template in Visual Studio 2022 Preview to create the durable functions (isolated) and change the line in the startup to use the ASP.NET core .NET8 http types instead of the built-in function http types. Then in the HTTP-trigger to start the orchestration change the
HttpRequestData
type inHttpRequestMessage
will fail theCreateCheckStatusResponse(...)
function to compile.