From ffa54bf81bc156b813f6a4364195bbd8b981f76d Mon Sep 17 00:00:00 2001 From: Netch Date: Mon, 21 Jun 2021 01:49:29 +0800 Subject: [PATCH] Add CoreDNS Controller --- .../Other/DNS/CoreDNSController.cs | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Netch/Controllers/Other/DNS/CoreDNSController.cs diff --git a/Netch/Controllers/Other/DNS/CoreDNSController.cs b/Netch/Controllers/Other/DNS/CoreDNSController.cs new file mode 100644 index 00000000..4c7cff0f --- /dev/null +++ b/Netch/Controllers/Other/DNS/CoreDNSController.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Netch.Controllers.Other.DNS +{ + public class CoreDNSController : Interface.IController + { + private Tools.Guard Guard = new() + { + StartInfo = new ProcessStartInfo() + { + FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin\\CoreDNS.exe"), + WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin"), + CreateNoWindow = true, + UseShellExecute = false, + WindowStyle = ProcessWindowStyle.Hidden + }, + JudgmentStarted = new List() + { + }, + JudgmentStopped = new List() + { + }, + AutoRestart = true + }; + + public bool Create(Models.Server.Server s, Models.Mode.Mode m) + { + throw new NotImplementedException(); + } + + public bool Delete() + { + throw new NotImplementedException(); + } + } +}