From 82e5cce6769f8c8df2c0d951a392375483ee9a35 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Mon, 14 Aug 2023 22:54:22 +0200 Subject: [PATCH] chore: reformat & cleanup --- Server/AuthSession.cs | 3 ++- Server/DB/Documents/Character.cs | 2 -- Server/Program.cs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Server/AuthSession.cs b/Server/AuthSession.cs index 2dec4ab..44b93e3 100644 --- a/Server/AuthSession.cs +++ b/Server/AuthSession.cs @@ -10,7 +10,6 @@ public class AuthSession : TcpSession { private readonly ILogger logger; private readonly IMediator mediator; - public Guid AccountId { get; set; } public AuthSession(TcpServer server, IMediator mediator, ILogger logger) : base(server) @@ -19,6 +18,8 @@ public class AuthSession : TcpSession this.logger = logger; } + public Guid AccountId { get; set; } + public override long Send(byte[] buffer) { this.logger.LogInformation("Data being sent is: {Data}", BitConverter.ToString(buffer)); diff --git a/Server/DB/Documents/Character.cs b/Server/DB/Documents/Character.cs index 9303404..96308bf 100644 --- a/Server/DB/Documents/Character.cs +++ b/Server/DB/Documents/Character.cs @@ -1,7 +1,5 @@ namespace Server.DB.Documents; -using Microsoft.EntityFrameworkCore.Metadata.Internal; - public class Character { public Guid AccountId { get; set; } diff --git a/Server/Program.cs b/Server/Program.cs index fe92ed4..23ef13a 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -15,7 +15,7 @@ var builder = Host.CreateApplicationBuilder(); builder.Environment.EnvironmentName = "Development"; #endif builder.Configuration.AddJsonFile("settings.json", true, true) - .AddJsonFile($"settings.{builder.Environment.EnvironmentName}.json", optional: true) + .AddJsonFile($"settings.{builder.Environment.EnvironmentName}.json", true) .AddEnvironmentVariables().Build(); builder.Services.AddLogging(); builder.Logging.AddFile("Logs/Server-{Date}.log", LogLevel.Trace);