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 ILogger<AuthSession> logger;
|
||||||
private readonly IMediator mediator;
|
private readonly IMediator mediator;
|
||||||
public Guid AccountId { get; set; }
|
|
||||||
|
|
||||||
public AuthSession(TcpServer
|
public AuthSession(TcpServer
|
||||||
server, IMediator mediator, ILogger<AuthSession> logger) : base(server)
|
server, IMediator mediator, ILogger<AuthSession> logger) : base(server)
|
||||||
|
@ -19,6 +18,8 @@ public class AuthSession : TcpSession
|
||||||
this.logger = logger;
|
this.logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Guid AccountId { get; set; }
|
||||||
|
|
||||||
public override long Send(byte[] buffer)
|
public override long Send(byte[] buffer)
|
||||||
{
|
{
|
||||||
this.logger.LogInformation("Data being sent is: {Data}", BitConverter.ToString(buffer));
|
this.logger.LogInformation("Data being sent is: {Data}", BitConverter.ToString(buffer));
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
namespace Server.DB.Documents;
|
namespace Server.DB.Documents;
|
||||||
|
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
|
||||||
|
|
||||||
public class Character
|
public class Character
|
||||||
{
|
{
|
||||||
public Guid AccountId { get; set; }
|
public Guid AccountId { get; set; }
|
||||||
|
|
|
@ -15,7 +15,7 @@ var builder = Host.CreateApplicationBuilder();
|
||||||
builder.Environment.EnvironmentName = "Development";
|
builder.Environment.EnvironmentName = "Development";
|
||||||
#endif
|
#endif
|
||||||
builder.Configuration.AddJsonFile("settings.json", true, true)
|
builder.Configuration.AddJsonFile("settings.json", true, true)
|
||||||
.AddJsonFile($"settings.{builder.Environment.EnvironmentName}.json", optional: true)
|
.AddJsonFile($"settings.{builder.Environment.EnvironmentName}.json", true)
|
||||||
.AddEnvironmentVariables().Build();
|
.AddEnvironmentVariables().Build();
|
||||||
builder.Services.AddLogging();
|
builder.Services.AddLogging();
|
||||||
builder.Logging.AddFile("Logs/Server-{Date}.log", LogLevel.Trace);
|
builder.Logging.AddFile("Logs/Server-{Date}.log", LogLevel.Trace);
|
||||||
|
|
Loading…
Reference in a new issue