servicependingpause.cs
来自「Oracle Service Manager」· CS 代码 · 共 39 行
CS
39 行
using System;
namespace kae.ServiceStatePublisher
{
/// <summary>
/// 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.
/// </summary>
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; }
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?