Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Sample Windows Service

Sample Windows service with NLog.
This version is debuggable from within Visual studio and launchable as console application.

General functionality: The service perform required operations once the Timer is elapsed.
On exception, it waits for N time and launches the same worker again until the service is stopped
or the worker thread exits without exceptions.

Steps to launch as console app after compilation:

  1. Create shortcut to compiled EXE file.
  2. In properties of the shortcut add " console" after executable file path.
  3. Save shortcut changes.
  4. Run the shortcut.

To install service:
1) Run compiled .exe file with attribute "install"

To uninstall service:
1) Run compiled .exe file with attribute "uninstall"

About

Sample Windows service with NLog.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages