GSF.ServiceProcess.ServiceHelper.OnServiceStopping C# (CSharp) Method

OnServiceStopping() protected method

Raises the ServiceStopping event.
protected OnServiceStopping ( ) : void
return void
        protected virtual void OnServiceStopping()
        {
            // Notify service event consumers of pending service stop
            if ((object)ServiceStopping != null)
                ServiceStopping(this, EventArgs.Empty);

            // Notify all remote clients of service stop
            SendServiceStateChangedResponse(ServiceState.Stopped);
        }
ServiceHelper