C
C#2y ago
Poller

AddHostedService Implementation choosen on startup

I was fiddling around with a solution to add 1 HostedService, depending on a enum value(config setting). but i was wondering if there is a better solution than just a bet switch statement?
1 Reply
Poller
Poller2y ago
something like this is my current solution