1 year ago
#338215
Walker66
How to synchronize multiple Background services (.Net 6 ) during initialization step?
I have two Workers in my .net6 project like below:
.ConfigureServices((hostContext, services) =>
{
services.AddHostedService<Worker1>();
services.AddHostedService<Worker2>();
}).Build();
how can I make sure Worker2 start after only Worker1 has started? It is possible in this scenario?
synchronization
.net-6.0
worker
0 Answers
Your Answer