feat : RDB 기능 추가 (라이브러리, base 코드 구현)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using MMOserver.Game;
|
||||
using MMOserver.RDB;
|
||||
using Serilog;
|
||||
|
||||
namespace MMOserver;
|
||||
@@ -9,6 +11,15 @@ class Program
|
||||
{
|
||||
// .MinimumLevel.Warning() // Warning 이상만 출력 배포시
|
||||
|
||||
IConfigurationRoot config = new ConfigurationBuilder()
|
||||
.SetBasePath(AppContext.BaseDirectory)
|
||||
.AddJsonFile("config.json", optional: true) // 로컬 개발용
|
||||
.AddEnvironmentVariables() // 도커 배포용
|
||||
.Build();
|
||||
|
||||
// DB 연결
|
||||
// DbConnectionFactory dbFactory = new DbConnectionFactory(config);
|
||||
|
||||
string timestamp = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss");
|
||||
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
|
||||
Reference in New Issue
Block a user