From 3a7d8c1aebbec1517cfe60ba41cd248f66a37d13 Mon Sep 17 00:00:00 2001 From: MrDave1999 Date: Tue, 3 Jan 2023 17:30:58 -0500 Subject: [PATCH] Removed 'WebHostEnvironment' class This change is related to PR #129 --- src/Helpers/WebHostEnvironment.cs | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/Helpers/WebHostEnvironment.cs diff --git a/src/Helpers/WebHostEnvironment.cs b/src/Helpers/WebHostEnvironment.cs deleted file mode 100644 index 87da1888..00000000 --- a/src/Helpers/WebHostEnvironment.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace DentallApp.Helpers; - -public static class WebHostEnvironment -{ - private const string _aspNetCoreEnvironment = "ASPNETCORE_ENVIRONMENT"; - private const string _development = "Development"; - private const string _staging = "Staging"; - private const string _production = "Production"; - - public static bool IsDevelopment() => IsEnvironment(_development); - public static bool IsStaging() => IsEnvironment(_staging); - public static bool IsProduction() => IsEnvironment(_production); - - public static bool IsEnvironment(string environmentName) - => string.Equals(Environment.GetEnvironmentVariable(_aspNetCoreEnvironment), - environmentName, - StringComparison.OrdinalIgnoreCase); -}