2023-03-19 17:57:55 +00:00
|
|
|
|
2023-03-20 21:48:32 +00:00
|
|
|
using Microsoft.AspNetCore;
|
2024-11-06 13:00:34 +00:00
|
|
|
using Yavsc.Extensions;
|
2023-03-19 17:57:55 +00:00
|
|
|
|
2023-03-20 21:48:32 +00:00
|
|
|
namespace Yavsc
|
2023-03-19 17:57:55 +00:00
|
|
|
{
|
2023-03-26 20:41:42 +01:00
|
|
|
public class Program
|
2023-03-20 21:48:32 +00:00
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2024-02-25 18:05:10 +00:00
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
2024-11-12 08:32:15 +00:00
|
|
|
|
2024-11-06 13:00:34 +00:00
|
|
|
builder.Configuration
|
|
|
|
|
.AddJsonFile("appsettings.json")
|
|
|
|
|
.AddJsonFile($"appsettings.{builder.Environment.EnvironmentName}.json", optional: true)
|
2024-11-10 14:30:12 +00:00
|
|
|
.AddEnvironmentVariables()
|
|
|
|
|
.Build();
|
2025-02-14 00:20:35 +00:00
|
|
|
var app = builder.ConfigureWebAppServices().ConfigurePipeline();
|
2024-11-06 13:00:34 +00:00
|
|
|
app.UseSession();
|
2024-02-25 18:05:10 +00:00
|
|
|
app.Run();
|
2023-03-20 21:48:32 +00:00
|
|
|
}
|
|
|
|
|
}
|
2023-03-19 17:57:55 +00:00
|
|
|
}
|