I'm trying the specify task hub name for my durable function following the documentation.
Here are steps I've done:
host.json
{
"version": "2.0",
"extensions": {
"durableTask": {
"hubName": "%TaskHubName%"
},
// ...
}
}
settings.json
{
"Values": {
"AzureWebJobsStorage": "connection string",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"TaskHubName": "mytaskhub"
}
// ...
}
MyFunction.cs
public async Task<IActionResult> Run(
[HttpTrigger(AuthorizationLevel.Function, "post", Route = "foo/bar")]
[RequestBodyType(typeof(List<QueryParams>), "Query Parameters")] HttpRequest req,
[OrchestrationClient(TaskHub = "%TaskHubName%")] DurableOrchestrationClient starter)
However I don't see any changes in my Azure Storage Account after running this function. What I'm doing wrong?
DurableOrchestrationClient starter
, is that a typo? In Function V2/3, it should beIDurableOrchestrationClient starter
(interface). docs.microsoft.com/en-us/azure/azure-functions/durable/… – krishg