/
diev
/
RobThree-DebuggableSelfInstallingService
Обзор
Документация
Войти
/
diev
/
RobThree-DebuggableSelfInstallingService
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
DebuggableService/ServiceImplementation.cs
72 строки
2 KB
RobThree
Initial commit
20 апр 2016, 20:20
20 апр 2016, 20:20
6a7e6f5
Код
Авторство
О чём код?
using $safeprojectname$.Framework; using System.ServiceProcess; namespace $safeprojectname$ { /// <summary> /// The actual implementation of the windows service goes here... /// </summary> [WindowsService("$safeprojectname$", DisplayName = "$safeprojectname$", Description = "The description of the $safeprojectname$ service.", EventLogSource = "$safeprojectname$", StartMode = ServiceStartMode.Automatic)] public class ServiceImplementation : IWindowsService { /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> /// <filterpriority>2</filterpriority> public void Dispose() { } /// <summary> /// This method is called when the service gets a request to start. /// </summary> /// <param name="args">Any command line arguments</param> public void OnStart(string[] args) { } /// <summary> /// This method is called when the service gets a request to stop. /// </summary> public void OnStop() { } /// <summary> /// This method is called when a service gets a request to pause, /// but not stop completely. /// </summary> public void OnPause() { } /// <summary> /// This method is called when a service gets a request to resume /// after a pause is issued. /// </summary> public void OnContinue() { } /// <summary> /// This method is called when the machine the service is running on /// is being shutdown. /// </summary> public void OnShutdown() { } /// <summary> /// This method is called when a custom command is issued to the service. /// </summary> /// <param name="command">The command identifier to execute.</param > public void OnCustomCommand(int command) { } } }