chore: reformat & cleanup
All checks were successful
Test if Server can be built / build-server (push) Successful in 25s
All checks were successful
Test if Server can be built / build-server (push) Successful in 25s
This commit is contained in:
parent
8816fb2944
commit
82e5cce676
3 changed files with 3 additions and 4 deletions
|
@ -10,7 +10,6 @@ public class AuthSession : TcpSession
|
|||
{
|
||||
private readonly ILogger<AuthSession> logger;
|
||||
private readonly IMediator mediator;
|
||||
public Guid AccountId { get; set; }
|
||||
|
||||
public AuthSession(TcpServer
|
||||
server, IMediator mediator, ILogger<AuthSession> 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));
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
namespace Server.DB.Documents;
|
||||
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
|
||||
public class Character
|
||||
{
|
||||
public Guid AccountId { get; set; }
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue