BlueCollar.Service.Service.OnPause C# (CSharp) Method

OnPause() protected method

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
return void
        protected override void OnPause()
        {
            lock (this.locker)
            {
                this.isRunning = false;
                this.DestroyWatcher();
                this.coordinator.Stop();
            }

            base.OnPause();
        }