Topshelf.SimpleInjector provides extensions to construct your Topshelf service class from the SimpleInjector IoC container.
This QuickStart package will quickly get you up and running with your WindowsService.
Create a new Console Application project, install this package, make sure to...
Transform your .Net core Api into All in one service. With your self contained build for Win64 you are able to Install and run your Api as Windows service, Self host with double click or even host in IIS proxy. One build does everything.
Use following code in Program.cs:
public static void...