Add project files.
This commit is contained in:
8
Utility/EnvironmentUtility.cs
Normal file
8
Utility/EnvironmentUtility.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace ConnectionsAPI.Utility
|
||||
{
|
||||
public static class EnvironmentUtility
|
||||
{
|
||||
public static bool IsContainer =>
|
||||
Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER") == "true";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user