Durable Functions Typed Interfaces
Is anyone successfully using Durable Functions Typed Interfaces with VS 17.9, and Microsoft.NET.Sdk.Functions v4.41
?
Durable Functions Typed Interfaces
Is anyone successfully using Durable Functions Typed Interfaces with VS 17.9, and Microsoft.NET.Sdk.Functions v4.41
?
Check if orchestration function is already running, using isolated process, .net 8
public async Task HttpRun(
[HttpTrigger(AuthorizationLevel.Function, “get”, “post”, Route = null)] HttpRequest req,
TaskOrchestrationContext starter, FunctionContext context)
{
//TODO check if BuildingsOrchestration is already running?
await starter.CallActivityAsync(FunctionNames.BuildingsOrchestration);
}
How to check if durable function is already running (worker isolated)?
[Function(FunctionNames.BuildingsStart)]
public async Task HttpRun(
[HttpTrigger(AuthorizationLevel.Function, “get”, “post”, Route = null)] HttpRequest req,
[DurableClient] DurableTaskClient starter)
{
How to get durable function runtime status, using .net 8 isolated worker
var runtimeStatus = new List<OrchestrationRuntimeStatus> { OrchestrationRuntimeStatus.Running }; var source = new CancellationTokenSource(); var token = source.Token; var statuses = await starter.ListInstancesAsync(new OrchestrationStatusQueryCondition() { RuntimeStatus = runtimeStatus }, new CancellationToken()); This code is not compatible with isolated worker. How do I change it? c# azure-durable-functions