mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-26 05:42:51 +08:00
21 lines
498 B
C#
21 lines
498 B
C#
using System;
|
|
using Microsoft.AspNetCore;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
namespace DownstreamService
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
BuildWebHost(args).Run();
|
|
}
|
|
|
|
public static IWebHost BuildWebHost(string[] args) =>
|
|
WebHost.CreateDefaultBuilder(args)
|
|
.UseUrls($"http://{Environment.MachineName}:5001")
|
|
.UseStartup<Startup>()
|
|
.Build();
|
|
}
|
|
}
|