From 96001500f019fe4829ff87dc9b696ec39203fac4 Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Fri, 12 Feb 2021 07:56:42 +0800 Subject: [PATCH] Guard.InitInstance() to virtual method --- Netch/Controllers/Guard.cs | 2 +- Netch/Controllers/IController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Netch/Controllers/Guard.cs b/Netch/Controllers/Guard.cs index e599169b..71f23ac4 100644 --- a/Netch/Controllers/Guard.cs +++ b/Netch/Controllers/Guard.cs @@ -83,7 +83,7 @@ namespace Netch.Controllers /// 仅初始化 ,不设定事件处理方法 /// /// - protected void InitInstance(string argument) + protected virtual void InitInstance(string argument) { Instance = new Process { diff --git a/Netch/Controllers/IController.cs b/Netch/Controllers/IController.cs index b829a199..2eb3b29b 100644 --- a/Netch/Controllers/IController.cs +++ b/Netch/Controllers/IController.cs @@ -10,6 +10,6 @@ /// /// 停止 /// - public abstract void Stop(); + public void Stop(); } } \ No newline at end of file