mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-19 21:56:26 +08:00
29 lines
753 B
C#
29 lines
753 B
C#
using System;
|
|
using Microsoft.AspNetCore;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Util.Logs;
|
|
using Util.Logs.Extensions;
|
|
|
|
namespace Util.Samples {
|
|
/// <summary>
|
|
/// 应用程序
|
|
/// </summary>
|
|
public class Program {
|
|
/// <summary>
|
|
/// 应用程序入口点
|
|
/// </summary>
|
|
/// <param name="args">入口点参数</param>
|
|
public static void Main( string[] args ) {
|
|
try {
|
|
WebHost.CreateDefaultBuilder( args )
|
|
.UseStartup<Startup>()
|
|
.Build()
|
|
.Run();
|
|
}
|
|
catch( Exception ex ) {
|
|
ex.Log( Log.GetLog().Caption( "应用程序启动失败" ) );
|
|
}
|
|
}
|
|
}
|
|
}
|