/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Hosting/test/testassets/BasicLinkedApp/Program.cs
45 строк
1 KB
Pranav K
Use file scoped namespaces (#38076)
06 ноя 2021, 03:52
Не верифицирован
06 ноя 2021, 03:52
a450cb6
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Configuration; namespace BasicLinkedApp; public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } // Do not change the signature of this method. It's used for tests. private static IHostBuilder CreateWebHostBuilder(string[] args) { return new HostBuilder() .ConfigureHostConfiguration(config => { config.AddCommandLine(args); }) .ConfigureLogging(logging => { logging.AddConsole(); logging.SetMinimumLevel(LogLevel.Debug); }) .ConfigureWebHost(webHostBuilder => { webHostBuilder.UseKestrel(o => { o.ConfigureEndpointDefaults(lo => { lo.UseConnectionLogging(); }); }).UseStartup<Startup>(); }); } }