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