You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-11Lines changed: 3 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,11 +55,7 @@ Now you can inject the `DurableTaskClient` into your classes to schedule or mana
55
55
56
56
### Durable Entities
57
57
58
-
To use durable entities, follow these steps:
59
-
60
-
1.**Manually register entities**: Add your entity to the `DurableTaskWorker` using `AddTasks()`. Note that automatic registration via `AddAllGeneratedTasks()` doesn't currently include entities (this will be addressed in a future version).
61
-
62
-
2.**Enable entity work item separation**: Configure `UseSeparateQueueForEntityWorkItems = true` in your `OrchestrationService` settings.
58
+
To use durable entities, **Enable entity work item separation** by setting `UseSeparateQueueForEntityWorkItems = true` in your `OrchestrationService`.
63
59
64
60
```csharp
65
61
@@ -70,15 +66,11 @@ var orchestrationServiceAndClient = new AzureStorageOrchestrationService(new()
70
66
UseSeparateQueueForEntityWorkItems=true
71
67
});
72
68
73
-
// Register the worker with manual entity registration
69
+
// Register the worker and tasks
74
70
builder.Services.AddDurableTaskWorker(builder=>
75
71
{
76
72
builder
77
-
.AddTasks(r=>
78
-
{
79
-
r.AddAllGeneratedTasks();
80
-
r.AddTask<MyCounterEntity>(); // Manually add your entity
0 commit comments