Мы не смогли создать пользовательский ответ и получить ответ от CreateCheckStAtusResponseSync только. < /p>
Пожалуйста, посоветуйте, как настроить этот ответ. Пример кода: < /p>
Код: Выделить всё
// Function app
[Function("HelloCities_HttpStart")]
public static async Task HttpStart([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req,
[DurableClient] DurableTaskClient client,
FunctionContext executionContext)
{
ILogger logger = executionContext.GetLogger("HelloCities_HttpStart");
// Function input comes from the request content.
string instanceId = await client.ScheduleNewOrchestrationInstanceAsync(nameof(HelloCities));
logger.LogInformation("Started orchestration with ID = '{instanceId}'.", instanceId);
// Returns an HTTP 202 response with an instance management payload.
// See https://learn.microsoft.com/azure/azure-functions/durable/durable-functions-http-api#start-orchestration
return await client.CreateCheckStatusResponseAsync(req, instanceId);
}
< /p>
Но ответ мы получаем вместо этого: < /p>
Подробнее здесь: https://stackoverflow.com/questions/794 ... s-in-net-8