21 lines
560 B
C#
21 lines
560 B
C#
|
|
using Gateway;
|
|
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
Host.CreateDefaultBuilder(args)
|
|
.ConfigureAppConfiguration((context, builder) =>
|
|
{
|
|
builder.AddJsonFile("ocelot.json", true, true);
|
|
builder.AddJsonFile($"ocelot.{context.HostingEnvironment.EnvironmentName}.json", true, true);
|
|
})
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
{
|
|
webBuilder.UseStartup<Startup>();
|
|
})
|
|
.Build().Run();
|
|
}
|
|
}
|