www.pudn.com > OracleServiceManager.zip > ServicePendingPause.cs


using System; 
 
namespace kae.ServiceStatePublisher 
{ 
	///  
	/// ServicePendingPause is a concrete ServiceState representing the  
	/// ServiceController state of pending pause.  As a singleton, only  
	/// one instance of this class is needed for the application. 
	///  
	public class ServicePendingPause : ServiceState 
	{ 
		private static ServicePendingPause _instance; 
 
		static ServicePendingPause() 
		{ 
			lock (typeof(ServicePendingPause)) 
			{ 
				if (_instance == null) 
					_instance = new ServicePendingPause(); 
			} 
		} 
 
		public static ServicePendingPause Instance 
		{ 
			get { return _instance; } 
		} 
 
		public override string Status 
		{ 
			get { return "Pausing"; } 
		} 
 
		public override bool IsChanging 
		{ 
			get { return true; } 
		} 
	} 
}