www.pudn.com > OracleServiceManager.zip > ServicePendingStop.cs
using System;
namespace kae.ServiceStatePublisher
{
///
/// 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.
///
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; }
}
}
}