skip to Main Content

I am now upgrading to .NET 7 Durable Function

The attributes below are not available with these

[DurableClient] IDurableOrchestrationClient starter
[OrchestrationTrigger] IDurableOrchestrationContext context
[ActivityTrigger] 

enter image description here

I get an error with .NET Worker
What is the equivalent with .NET 7?

EDIT

I have got this compiling now but I get IDurableOrchestrationClient being resolved from webjobs, whats the equivalent in .NET 7?

My current packages are below

enter image description here

Paul

2

Answers


  1. Was currently attempting the same.

    Out of process or isolated packages are still in RC as per https://github.com/microsoft/durabletask-dotnet and there are still features missing such as durable entities.

    That said I could get to compile using .net 7, v4 of functions using below.

        [DurableClient] DurableClientContext durableContext,
        FunctionContext executionContext)
    {
        ILogger logger = executionContext.GetLogger(nameof(StartHelloCitiesTyped));
    
        string instanceId = await durableContext.Client.ScheduleNewHelloCitiesTypedInstanceAsync();
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search