I broke the shutdown helper into two executor classes rather than having the if block in the helper class. The change isolates the dependencies so that the helper class is just in charge of deciding what type of executor to fire.
I added some tests to the project as well. I just used MS Test, but I would be open to changing to NUnit or XUnit as well.
I broke the shutdown helper into two executor classes rather than having the if block in the helper class. The change isolates the dependencies so that the helper class is just in charge of deciding what type of executor to fire. I added some tests to the project as well. I just used MS Test, but I would be open to changing to NUnit or XUnit as well.