SwapDude/SWAD.API/Program.cs
Lisoveliy aebe654c38
Some checks are pending
Deploy / update (push) Waiting to run
Build Project .NET / build (push) Waiting to run
chore: init commit from GitHub
2025-05-12 19:44:33 +03:00

34 lines
1.2 KiB
C#

using System.Diagnostics;
using System.Reflection;
namespace SWAD.API;
public static class Program
{
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
Startup.Configure(builder);
Startup.ConfigureServices(builder.Services);
var app = builder.Build();
Startup.ConfigureApplication(app);
Splash(app.Logger);
app.Run();
}
private static void Splash(ILogger logger)
{
var splash = """
____ ____ _ _ ____ ___
/ ___|_ ____ _ _ __ | _ \ _ _ __| | ___ / \ | _ \_ _|
\___ \ \ /\ / / _` | '_ \| | | | | | |/ _` |/ _ \ / _ \ | |_) | |
___) \ V V / (_| | |_) | |_| | |_| | (_| | __/_ / ___ \| __/| |
|____/ \_/\_/ \__,_| .__/|____/ \__,_|\__,_|\___(_)_/ \_\_| |___|
|_|
""";
logger.LogWarning(splash);
logger.LogInformation(
$"Build assembly version: {FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion}");
}
}