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

OnContinue() protected method

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
return void
        protected override void OnContinue()
        {
            IEnumerable<ApplicationElement> applications = GetApplicationElements();

            lock (this.locker)
            {
                this.isRunning = true;
                this.coordinator.StartAndRefresh(applications);
                this.CreateWatcher();
            }

            base.OnContinue();
        }