From 0390014b6070276c96ccc0714d27afc8b4745fc8 Mon Sep 17 00:00:00 2001 From: RavMorgan <48182970+RavMorgan@users.noreply.github.com> Date: Fri, 5 May 2023 17:28:20 +0300 Subject: [PATCH] Senior c# ban development (#20) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added КОСТЫЛЬ * eblan --------- Co-authored-by: Mona Hmiza <> --- Content.Server/Database/ServerDbPostgres.cs | 1 + Content.Server/Database/ServerDbSqlite.cs | 1 + Content.Server/Entry/EntryPoint.cs | 2 ++ Content.Server/White/UnsafePseudoIoC.cs | 14 ++++++++++++++ 4 files changed, 18 insertions(+) create mode 100644 Content.Server/White/UnsafePseudoIoC.cs diff --git a/Content.Server/Database/ServerDbPostgres.cs b/Content.Server/Database/ServerDbPostgres.cs index 12c65b069b..9629ed0ad6 100644 --- a/Content.Server/Database/ServerDbPostgres.cs +++ b/Content.Server/Database/ServerDbPostgres.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Content.Server.Administration.Logs; +using Content.Server.White; using Content.Shared.CCVar; using Microsoft.EntityFrameworkCore; using Robust.Shared.Configuration; diff --git a/Content.Server/Database/ServerDbSqlite.cs b/Content.Server/Database/ServerDbSqlite.cs index cb60bccef5..b9a4b6fb7b 100644 --- a/Content.Server/Database/ServerDbSqlite.cs +++ b/Content.Server/Database/ServerDbSqlite.cs @@ -8,6 +8,7 @@ using System.Threading.Tasks; using Content.Server.Administration.Logs; using Content.Server.IP; using Content.Server.Preferences.Managers; +using Content.Server.White; using Content.Shared.CCVar; using Microsoft.EntityFrameworkCore; using Robust.Shared.Configuration; diff --git a/Content.Server/Entry/EntryPoint.cs b/Content.Server/Entry/EntryPoint.cs index 18d44c5ff2..57952de197 100644 --- a/Content.Server/Entry/EntryPoint.cs +++ b/Content.Server/Entry/EntryPoint.cs @@ -30,6 +30,7 @@ using Robust.Shared.Prototypes; using Robust.Shared.Timing; using Robust.Shared.Utility; using Content.Server.UtkaIntegration; +using Content.Server.White; using Content.Server.White.JoinQueue; using Content.Server.White.Jukebox; using Content.Server.White.Sponsors; @@ -108,6 +109,7 @@ namespace Content.Server.Entry IoCManager.Resolve().Initialize(); IoCManager.Resolve().Initialize(); IoCManager.Resolve().Initialize(); + UnsafePseudoIoC.Initialize(); //WD-EDIT IoCManager.Resolve().Initialize(); diff --git a/Content.Server/White/UnsafePseudoIoC.cs b/Content.Server/White/UnsafePseudoIoC.cs new file mode 100644 index 0000000000..7e4dec34ac --- /dev/null +++ b/Content.Server/White/UnsafePseudoIoC.cs @@ -0,0 +1,14 @@ +using Robust.Shared.Configuration; + +namespace Content.Server.White; + +public static class UnsafePseudoIoC // Я НАНАВИЖУ IOCMAANGERRESOLVEPOSHEL NAHUI +{ + public static IConfigurationManager ConfigurationManager = default!; + + public static void Initialize() + { + ConfigurationManager = IoCManager.Resolve(); + } + +}