📄 servicependingstop.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -