Cgw.Common.ServiceRun.InitializeComponent C# (CSharp) Method

InitializeComponent() private method

服务运行的初始化
private InitializeComponent ( string serviceName ) : void
serviceName string 服务的名字
return void
        private void InitializeComponent(string serviceName)
        {
            // Initialize the operating properties for the service.
            this.CanPauseAndContinue = false;
            this.CanShutdown = true;
            this.CanHandleSessionChangeEvent = true;
            this.ServiceName = serviceName;
        }