CORS/samples/SampleOrigin/Program.cs

26 строки
730 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://*: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();
}
}
}