mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-17 07:12:32 +00:00
* Start of reorganization and cleanup * Remove duplicate title id * Refactor types * Fix Release building * Move classes in /Types to a Types namespace * Fix compilation error (RoomVisualizerPage strikes again) * Fix bugs created from auto merge * Fix auto-merge compilation error * Changes from review/fix failed merge
36 lines
No EOL
1.2 KiB
C#
36 lines
No EOL
1.2 KiB
C#
using LBPUnion.ProjectLighthouse.Configuration;
|
|
using LBPUnion.ProjectLighthouse.Logging.Loggers.AspNet;
|
|
using LBPUnion.ProjectLighthouse.Servers.GameServer.Startup;
|
|
using LBPUnion.ProjectLighthouse.Types.Misc;
|
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
|
|
namespace LBPUnion.ProjectLighthouse.Servers.GameServer;
|
|
|
|
public static class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
StartupTasks.Run(args, ServerType.GameServer);
|
|
|
|
CreateHostBuilder(args).Build().Run();
|
|
}
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args)
|
|
=> Host.CreateDefaultBuilder(args)
|
|
.ConfigureWebHostDefaults
|
|
(
|
|
webBuilder =>
|
|
{
|
|
webBuilder.UseStartup<GameServerStartup>();
|
|
webBuilder.UseUrls(ServerConfiguration.Instance.GameApiListenUrl);
|
|
}
|
|
)
|
|
.ConfigureLogging
|
|
(
|
|
logging =>
|
|
{
|
|
logging.ClearProviders();
|
|
logging.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, AspNetToLighthouseLoggerProvider>());
|
|
}
|
|
);
|
|
} |