Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<PackageVersion Include="NosCore.Networking" Version="8.0.0" />
<PackageVersion Include="NosCore.Packets" Version="21.1.1" />
<PackageVersion Include="NosCore.PathFinder" Version="2.1.0" />
<PackageVersion Include="NosCore.Shared" Version="6.0.1" />
<PackageVersion Include="NosCore.Shared" Version="6.0.2" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.3" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime" Version="10.0.3" />
<PackageVersion Include="Npgsql.NodaTime" Version="10.0.3" />
Expand Down
35 changes: 0 additions & 35 deletions src/NosCore.Core/ConsoleTitle.cs

This file was deleted.

3 changes: 2 additions & 1 deletion src/NosCore.LoginServer/LoginServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using NosCore.Database;
using NosCore.GameObject.InterChannelCommunication.Hubs.ChannelHub;
using NosCore.Networking;
using NosCore.Shared.Helpers;
using NosCore.Shared.I18N;
using Polly;
using System;
Expand All @@ -29,7 +30,7 @@ public class LoginServer(IOptions<LoginConfiguration> loginConfiguration, Networ
{
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
ConsoleTitle.Append($@" - Port : {Convert.ToInt32(loginConfiguration.Value.Port)}");
ConsoleHelper.AppendTitle($@" - Port : {Convert.ToInt32(loginConfiguration.Value.Port)}");

try
{
Expand Down
3 changes: 2 additions & 1 deletion src/NosCore.LoginServer/LoginServerBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
using NosCore.Packets.Attributes;
using NosCore.Packets.Enumerations;
using NosCore.Packets.Interfaces;
using NosCore.Shared.Helpers;
using NosCore.Shared.Authentication;
using NosCore.Shared.Configuration;
using NosCore.Shared.Enumerations;
Expand Down Expand Up @@ -163,7 +164,7 @@ private static IHost BuildHost(string[] args)
.ConfigureContainer<ContainerBuilder>(InitializeContainer)
.ConfigureServices((hostContext, services) =>
{
ConsoleTitle.Set(Title);
ConsoleHelper.SetTitle(Title);

InitializeConfiguration(args, services);
services.AddI18NLogs();
Expand Down
3 changes: 2 additions & 1 deletion src/NosCore.MasterServer/MasterServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Microsoft.Extensions.Options;
using NosCore.Core;
using NosCore.Data.Enumerations.I18N;
using NosCore.Shared.Helpers;
using NosCore.Shared.I18N;
using Microsoft.Extensions.Logging;
using System.Threading;
Expand All @@ -24,7 +25,7 @@ public class MasterServer(IOptions<MasterConfiguration> masterConfiguration, ILo
protected override Task ExecuteAsync(CancellationToken stoppingToken)
{
logger.LogInformation(logLanguage[LogLanguageKey.SUCCESSFULLY_LOADED]);
ConsoleTitle.Append($@" - WebApi : {_masterConfiguration.WebApi}");
ConsoleHelper.AppendTitle($@" - WebApi : {_masterConfiguration.WebApi}");

return Task.CompletedTask;
}
Expand Down
3 changes: 2 additions & 1 deletion src/NosCore.MasterServer/MasterServerBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
using NosCore.GameObject.Services.BazaarService;
using NosCore.GameObject.Services.FriendService;
using NosCore.GameObject.Services.MailService;
using NosCore.Shared.Helpers;
using NosCore.Shared.Authentication;
using NosCore.Shared.Configuration;
using NosCore.Shared.Enumerations;
Expand Down Expand Up @@ -87,7 +88,7 @@ private static WebApplication BuildApp(string[] args)
builder.Configuration.AddConfiguration(
ConfiguratorBuilder.InitializeConfiguration(args, new[] { "logger.yml", "master.yml" }));

ConsoleTitle.Set(Title);
ConsoleHelper.SetTitle(Title);
Logger.PrintHeader(ConsoleText);

builder.Host.UseSerilog();
Expand Down
3 changes: 2 additions & 1 deletion src/NosCore.Parser/ParserBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
using NosCore.Database.Entities;
using NosCore.Database.Entities.Base;
using NosCore.Parser.Parsers;
using NosCore.Shared.Helpers;
using NosCore.Shared.Configuration;
using NosCore.Shared.I18N;
using Serilog;
Expand Down Expand Up @@ -137,7 +138,7 @@ private static IHost BuildHost(string[] args, ParserCliOptions cli)
.ConfigureContainer<ContainerBuilder>(InitializeContainer)
.ConfigureServices((hostContext, services) =>
{
ConsoleTitle.Set(Title);
ConsoleHelper.SetTitle(Title);

InitializeConfiguration(args, services);

Expand Down
3 changes: 2 additions & 1 deletion src/NosCore.WorldServer/WorldServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using NosCore.GameObject.Services.MapInstanceGenerationService;
using NosCore.GameObject.Services.SaveService;
using NosCore.Networking;
using NosCore.Shared.Helpers;
using NosCore.Shared.I18N;
using Polly;
using System;
Expand All @@ -37,7 +38,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
await mapInstanceGeneratorService.InitializeAsync();
logger.LogInformation(logLanguage[LogLanguageKey.SUCCESSFULLY_LOADED]);

ConsoleTitle.Append($@" - Port : {worldConfiguration.Value.Port}");
ConsoleHelper.AppendTitle($@" - Port : {worldConfiguration.Value.Port}");
var connectTask = Policy
.Handle<Exception>()
.WaitAndRetryForeverAsync(retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)),
Expand Down
3 changes: 2 additions & 1 deletion src/NosCore.WorldServer/WorldServerBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
using NosCore.Packets.Interfaces;
using NosCore.PathFinder.Heuristic;
using NosCore.PathFinder.Interfaces;
using NosCore.Shared.Helpers;
using NosCore.Shared.Authentication;
using NosCore.Shared.Configuration;
using NosCore.Shared.Enumerations;
Expand Down Expand Up @@ -235,7 +236,7 @@ private static IHost BuildHost(string[] args)
.ConfigureContainer<ContainerBuilder>(InitializeContainer)
.ConfigureServices((hostContext, services) =>
{
ConsoleTitle.Set(Title);
ConsoleHelper.SetTitle(Title);

InitializeConfiguration(args, services);

Expand Down
Loading