Skip to content

Commit 4785899

Browse files
committed
save
1 parent b8be741 commit 4785899

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

samples/ScheduleConsoleApp/Program.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,7 @@
2323
_ = services.AddDurableTaskWorker(builder =>
2424
{
2525
// Add the Schedule entity and demo orchestration
26-
builder.AddTasks(r =>
27-
{
28-
// Add the orchestrator class
29-
r.AddOrchestrator<StockPriceOrchestrator>();
30-
31-
// Add required activities
32-
r.AddActivity<GetStockPrice>();
33-
});
26+
builder.AddTasks(r => r.AddAllGeneratedTasks());
3427

3528
// Enable scheduled tasks support
3629
builder.UseDurableTaskScheduler(connectionString);

0 commit comments

Comments
 (0)