Add project files.

This commit is contained in:
rafi1212122 committed 2023-05-23 21:20:51 +07:00
1 parent a23b0f37c1
commit df32db9a60
6 files changed
+110

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
using Config.Net;
namespace Common
{
public static class Global
{
public static IConfig config = new ConfigurationBuilder<IConfig>().UseJsonFile("config.json").Build();
}
public interface IConfig
{
[Option(DefaultValue = VerboseLevel.Normal)]
VerboseLevel VerboseLevel { get; }
[Option(DefaultValue = "mongodb://localhost:27017/crepebh")]
string DatabaseUri { get; }
}
public enum VerboseLevel
{
Normal = 0,
Debug = 1
}
}