yavsc/src/Yavsc/Program.cs

22 lines
620 B
C#
Raw Normal View History

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-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();
2024-11-06 13:00:34 +00:00
var app = builder.ConfigureServices().ConfigurePipeline();
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
}