servicependingstop.cs

来自「Oracle Service Manager」· CS 代码 · 共 39 行

CS
39
字号
using System;

namespace kae.ServiceStatePublisher
{
	/// <summary>
	/// ServicePendingStop is a concrete ServiceState representing the 
	/// ServiceController state of pending stop.  As a singleton, only 
	/// one instance of this class is needed for the application.
	/// </summary>
	public class ServicePendingStop : ServiceState
	{
		private static ServicePendingStop _instance;

		static ServicePendingStop()
		{
			lock (typeof(ServicePendingStop))
			{
				if (_instance == null)
					_instance = new ServicePendingStop();
			}
		}

		public static ServicePendingStop Instance
		{
			get { return _instance; }
		}

		public override string Status
		{
			get { return "Stopping"; }
		}

		public override bool IsChanging
		{
			get { return true; }
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?