TaskHubWorker to implement IHostedService
- Lingua principale
- C#
- Stelle
- 1.7k
- Fork
- 335
- Merge medio
- 2g 23h
- PR unite (30g)
- 6
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Individua TaskHubWorker e i relativi punti di ingresso esistenti StartAsync e StopAsync, quindi leggi le indicazioni collegate sull’interfaccia .NET IHostedService. Il lavoro è completato quando TaskHubWorker supporta l’hosting con IHostedService e un comportamento di avvio e arresto consapevole di CancellationToken, inclusa una decisione chiara sull’eventuale passaggio di questi token alle chiamate interne.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100