servicestateunknown.cs

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

CS
35
字号
using System;

namespace kae.ServiceStatePublisher
{
	/// <summary>
	/// ServiceStateUnknown implements a a concrete state 
	/// class in the State Pattern.
	/// The Singleton Pattern is also used to limit this class
	/// to one instance for the application.
	/// </summary>
	public class ServiceStateUnknown : ServiceState
	{
		private static ServiceStateUnknown _instance;

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

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

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

⌨️ 快捷键说明

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