CORS/samples/SampleOrigin/Program.cs

26 строки
747 B
C#
Исходник Постоянная ссылка Обычный вид История

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()
.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();
}
}
}