initial upload
This commit is contained in:
parent
a0aa9cc28e
commit
f857f43df4
553 changed files with 46169 additions and 13 deletions
13
src/Core/Insight.Domain/Constants/Configuration.cs
Normal file
13
src/Core/Insight.Domain/Constants/Configuration.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.Net;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Insight.Domain.Constants
|
||||
{
|
||||
public static class Configuration
|
||||
{
|
||||
public static string Hostname => Dns.GetHostEntry("localhost").HostName;
|
||||
public static Version Version => Assembly.GetEntryAssembly()?.GetName().Version ?? throw new ArgumentNullException("Version");
|
||||
public static DirectoryInfo? AppDirectory => string.IsNullOrWhiteSpace(Environment.ProcessPath) ? null : new DirectoryInfo(Environment.ProcessPath).Parent;
|
||||
public static string DefaultConfig => Path.Combine(AppDirectory?.FullName ?? string.Empty, "config.json");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue