C# Класс BlueCollar.Service.Service

Наследование: System.ServiceProcess.ServiceBase
Показать файл Открыть проект

Открытые методы

Метод Описание
Service ( ) : System

Initializes a new instance of the Service class.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Disposes of resources used by this instance.

OnContinue ( ) : void

Runs when a Continue command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service resumes normal functioning after being paused.

OnPause ( ) : void

Executes when a Pause command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service pauses.

OnStart ( string args ) : void

Executes when a Start command is sent to the service by the Service Control Manager (SCM) or when the operating system starts (for a service that starts automatically). Specifies actions to take when the service starts.

OnStop ( ) : void

Executes when a Stop command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service stops running.

Приватные методы

Метод Описание
CreateWatcher ( ) : void

Creates the Diagnostics.FileSystemWatcher to watch for configuration changes.

DestroyWatcher ( ) : void

Destroys the Diagnostics.FileSystemWatcher.

GetApplicationElements ( ) : IEnumerable

Gets a collection of application elements from the configuration.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

WatcherOperation ( object sender, FileSystemEventArgs e ) : void

Raises the Diagnostics.FileSystemWatcher's Operation event.

Описание методов

Dispose() защищенный Метод

Disposes of resources used by this instance.
protected Dispose ( bool disposing ) : void
disposing bool A value indicating whether to dispose of managed resources.
Результат void

OnContinue() защищенный Метод

Runs when a Continue command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service resumes normal functioning after being paused.
protected OnContinue ( ) : void
Результат void

OnPause() защищенный Метод

Executes when a Pause command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service pauses.
protected OnPause ( ) : void
Результат void

OnStart() защищенный Метод

Executes when a Start command is sent to the service by the Service Control Manager (SCM) or when the operating system starts (for a service that starts automatically). Specifies actions to take when the service starts.
protected OnStart ( string args ) : void
args string Data passed by the start command.
Результат void

OnStop() защищенный Метод

Executes when a Stop command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service stops running.
protected OnStop ( ) : void
Результат void

Service() публичный Метод

Initializes a new instance of the Service class.
public Service ( ) : System
Результат System