2016-11-18 04:36:18 +03:00
|
|
|
|
// Copyright (c) .NET Foundation. All rights reserved.
|
|
|
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
|
|
2016-11-17 02:46:47 +03:00
|
|
|
|
using System.IO;
|
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
2017-05-05 02:15:59 +03:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
2016-11-17 02:46:47 +03:00
|
|
|
|
|
|
|
|
|
namespace SampleOrigin
|
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
var host = new WebHostBuilder()
|
|
|
|
|
.UseKestrel()
|
2018-08-11 03:51:34 +03:00
|
|
|
|
.UseUrls("http://+:9001", "http://+:9002")
|
2016-11-17 02:46:47 +03:00
|
|
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
2017-05-05 02:15:59 +03:00
|
|
|
|
.ConfigureLogging(factory => factory.AddConsole())
|
2016-11-17 02:46:47 +03:00
|
|
|
|
.UseStartup<Startup>()
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
host.Run();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|