Azure / Azure/durabletask

TaskHubWorker to implement IHostedService

Open
#596 1 comment 1 reaction 0 assignees View on GitHub
dt.core help wanted modernization
Dominant language
C#
Stars
1.7k
Forks
335
Avg merge
2d 23h
Merged PRs (30d)
6

Description

This would make it easier for .NET developers to host `TaskHubWorker` instances in [.NET background worker](https://docs.microsoft.com/aspnet/core/fundamentals/host/hosted-services#ihostedservice-interface) projects. It also more closely aligns DTFx with modern .NET design patterns.

In terms of implementation, this shouldn't be very difficult. It's mostly a matter of adding `StartAsync` and `StopAsync` overloads that take a `CancellationToken` parameter. As part of this, we could consider passing down these cancellation tokens to inner StartAsync and StopAsync calls.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.