This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
usingAutofac.Extensions.DependencyInjection;
usingMicrosoft.AspNetCore.Hosting;
usingMicrosoft.Extensions.Configuration;
usingMicrosoft.Extensions.Hosting;
usingMicrosoft.Extensions.Logging;
usingSystem;
usingSystem.Collections.Generic;
usingSystem.IO;
usingSystem.Linq;
usingSystem.Threading.Tasks;
namespaceAdmin.Core.Api
{
/// <summary>
/// Program
/// </summary>
publicclassProgram
{
/// <summary>
/// Main
/// </summary>
/// <param name="args"></param>
publicstaticvoidMain(string[]args)
{
CreateHostBuilder(args)
// 生成承载 web 应用程序的 Microsoft.AspNetCore.Hosting.IWebHost。Build是WebHostBuilder最终的目的,将返回一个构造的WebHost,最终生成宿主。