Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 485 Bytes

Basicwinservice.md

File metadata and controls

14 lines (10 loc) · 485 Bytes

Required NuGet-Packages

Topshelf

  • Executing the exe will run the service in a console
  • Windowsservice can be installed via cmd.exe (Run as Administrator) - Service.exe install
  • For uninstallation use Service.exe uninstall

Bootstrap.cs

This class is for registrering the types for the dependency Injection. In this example the BasicService, which contains the logic for the service, must be registred.