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()
|
2016-11-22 02:31:14 +03:00
|
|
|
|
.UseUrls("http://*:5001")
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|