📄 detectaction.cs
字号:
namespace Imps.Client.CommLayer.NetworkDetect
{
using Imps.Client.CommLayer;
using System;
using System.Runtime.CompilerServices;
public class DetectAction : IDisposable
{
private bool _canResume;
private string _description = string.Empty;
private Imps.Client.CommLayer.DetectData _detectData = new Imps.Client.CommLayer.DetectData();
private NetworkDetectStage _nextStage;
public event EventHandler<DetectEventArgs> OnDetectFinished;
public virtual void BeginDetectAction()
{
}
public virtual void CancelDetectAction()
{
}
public virtual void Dispose()
{
}
protected void FireDetecFinsihedEvent(object sender, DetectEventArgs e)
{
if (this.OnDetectFinished != null)
{
this.OnDetectFinished.Invoke(sender, e);
}
}
public bool CanResume
{
get
{
return this._canResume;
}
protected set
{
this._canResume = value;
}
}
public virtual NetworkDetectStage CurrentStage
{
get
{
return NetworkDetectStage.NetworkAdapter;
}
}
public string Description
{
get
{
return this._description;
}
protected set
{
this._description = value;
}
}
public Imps.Client.CommLayer.DetectData DetectData
{
get
{
return this._detectData;
}
set
{
this._detectData = value;
}
}
public NetworkDetectStage NextStage
{
get
{
return this._nextStage;
}
protected set
{
this._nextStage = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -