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


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