TaskHubWorker to implement IHostedService
- Langage dominant
- C#
- Étoiles
- 1.7k
- Forks
- 335
- Merge moyen
- 2 j 23 h
- PR mergées (30 j)
- 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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Repérez TaskHubWorker et ses points d’entrée existants StartAsync et StopAsync, puis consultez les indications liées concernant l’interface .NET IHostedService. Le travail est terminé lorsque TaskHubWorker prend en charge l’hébergement avec IHostedService et un comportement de démarrage et d’arrêt prenant en compte CancellationToken, avec notamment une décision claire quant au passage de ces tokens aux appels internes.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- backend
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100