-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgramFramework.cs
More file actions
26 lines (24 loc) · 837 Bytes
/
Copy pathProgramFramework.cs
File metadata and controls
26 lines (24 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace kRetro.Framework
{
public class ProgramFramework
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(
(WebHostBuilderContext context, IConfigurationBuilder builder) =>
{
//builder.Sources.Clear();
builder
.AddJsonFile($"appsettings.NG.json", optional: true, reloadOnChange: true);
})
.UseStartup<StartupFramework>()
.Build();
}
}