招聘后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
991 B

using Microsoft.AspNetCore.Hosting;
using Znyc.Recruitment.Admin.Commons.Core.App;
//通过HostingStartup指定要启动的类型
[assembly: HostingStartup(typeof(HostingStartup))]
namespace Znyc.Recruitment.Admin.Commons.Core.App
{
/// <summary>
/// 配置程序启动时自动注入
/// </summary>
public sealed class HostingStartup : IHostingStartup
{
/// <summary>
/// 配置应用启动
/// </summary>
/// <param name="builder"></param>
public void Configure(IWebHostBuilder builder)
{
//可以添加配置
builder.ConfigureAppConfiguration((hostingContext, config) =>
{
// 自动装载配置
App.AddConfigureFiles(config, hostingContext.HostingEnvironment);
});
//可以添加ConfigureServices
// 自动注入 AddApp() 服务
builder.ConfigureServices(services => { });
}
}
}