From 84dd0643e36716c540fc88792ff7948fa1a9e073 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 12 Sep 2018 16:33:20 -0400 Subject: [PATCH] Move post write handling from StaticFiles to Core --- src/Tgstation.Server.Host/Core/Application.cs | 1 - .../{Components/StaticFiles => Core}/IPostWriteHandler.cs | 2 +- .../{Components/StaticFiles => Core}/PosixPostWriteHandler.cs | 2 +- .../{Components/StaticFiles => Core}/ServerSideModifications.cs | 0 .../{Components/StaticFiles => Core}/WindowsPostWriteHandler.cs | 2 +- 5 files changed, 3 insertions(+), 4 deletions(-) rename src/Tgstation.Server.Host/{Components/StaticFiles => Core}/IPostWriteHandler.cs (81%) rename src/Tgstation.Server.Host/{Components/StaticFiles => Core}/PosixPostWriteHandler.cs (92%) rename src/Tgstation.Server.Host/{Components/StaticFiles => Core}/ServerSideModifications.cs (100%) rename src/Tgstation.Server.Host/{Components/StaticFiles => Core}/WindowsPostWriteHandler.cs (79%) diff --git a/src/Tgstation.Server.Host/Core/Application.cs b/src/Tgstation.Server.Host/Core/Application.cs index eaa3e40521..b0218e2dc4 100644 --- a/src/Tgstation.Server.Host/Core/Application.cs +++ b/src/Tgstation.Server.Host/Core/Application.cs @@ -21,7 +21,6 @@ using System.Threading.Tasks; using Tgstation.Server.Host.Components; using Tgstation.Server.Host.Components.Byond; using Tgstation.Server.Host.Components.Chat; -using Tgstation.Server.Host.Components.StaticFiles; using Tgstation.Server.Host.Components.Watchdog; using Tgstation.Server.Host.Configuration; using Tgstation.Server.Host.Controllers; diff --git a/src/Tgstation.Server.Host/Components/StaticFiles/IPostWriteHandler.cs b/src/Tgstation.Server.Host/Core/IPostWriteHandler.cs similarity index 81% rename from src/Tgstation.Server.Host/Components/StaticFiles/IPostWriteHandler.cs rename to src/Tgstation.Server.Host/Core/IPostWriteHandler.cs index a1db4b8d37..7209b44761 100644 --- a/src/Tgstation.Server.Host/Components/StaticFiles/IPostWriteHandler.cs +++ b/src/Tgstation.Server.Host/Core/IPostWriteHandler.cs @@ -1,4 +1,4 @@ -namespace Tgstation.Server.Host.Components.StaticFiles +namespace Tgstation.Server.Host.Core { interface IPostWriteHandler { diff --git a/src/Tgstation.Server.Host/Components/StaticFiles/PosixPostWriteHandler.cs b/src/Tgstation.Server.Host/Core/PosixPostWriteHandler.cs similarity index 92% rename from src/Tgstation.Server.Host/Components/StaticFiles/PosixPostWriteHandler.cs rename to src/Tgstation.Server.Host/Core/PosixPostWriteHandler.cs index a028fe1c03..d121d2bca8 100644 --- a/src/Tgstation.Server.Host/Components/StaticFiles/PosixPostWriteHandler.cs +++ b/src/Tgstation.Server.Host/Core/PosixPostWriteHandler.cs @@ -1,7 +1,7 @@ using Mono.Unix; using Mono.Unix.Native; -namespace Tgstation.Server.Host.Components.StaticFiles +namespace Tgstation.Server.Host.Core { /// /// for POSIX systems diff --git a/src/Tgstation.Server.Host/Components/StaticFiles/ServerSideModifications.cs b/src/Tgstation.Server.Host/Core/ServerSideModifications.cs similarity index 100% rename from src/Tgstation.Server.Host/Components/StaticFiles/ServerSideModifications.cs rename to src/Tgstation.Server.Host/Core/ServerSideModifications.cs diff --git a/src/Tgstation.Server.Host/Components/StaticFiles/WindowsPostWriteHandler.cs b/src/Tgstation.Server.Host/Core/WindowsPostWriteHandler.cs similarity index 79% rename from src/Tgstation.Server.Host/Components/StaticFiles/WindowsPostWriteHandler.cs rename to src/Tgstation.Server.Host/Core/WindowsPostWriteHandler.cs index 61c8431662..42ed2cdf1b 100644 --- a/src/Tgstation.Server.Host/Components/StaticFiles/WindowsPostWriteHandler.cs +++ b/src/Tgstation.Server.Host/Core/WindowsPostWriteHandler.cs @@ -1,4 +1,4 @@ -namespace Tgstation.Server.Host.Components.StaticFiles +namespace Tgstation.Server.Host.Core { /// /// for Windows systems