📄 servicependingstart.cs
字号:
using System;
namespace kae.ServiceStatePublisher
{
/// <summary>
/// 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.
/// </summary>
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; }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -