|
|
|
@ -1,12 +1,12 @@ |
|
|
|
|
using Tiobon.Core.Common; |
|
|
|
|
using System.Text; |
|
|
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
using Microsoft.Extensions.Hosting; |
|
|
|
|
using System.Text; |
|
|
|
|
using Tiobon.Core.Common; |
|
|
|
|
using Tiobon.Core.Common.DB; |
|
|
|
|
|
|
|
|
|
namespace Tiobon.Core.Extensions |
|
|
|
|
{ |
|
|
|
|
namespace Tiobon.Core.Extensions; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 项目 启动服务 |
|
|
|
|
/// </summary> |
|
|
|
@ -16,7 +16,7 @@ namespace Tiobon.Core.Extensions |
|
|
|
|
{ |
|
|
|
|
if (services == null) throw new ArgumentNullException(nameof(services)); |
|
|
|
|
|
|
|
|
|
if (AppSettings.app(new string[] { "Startup", "AppConfigAlert", "Enabled" }).ObjToBool()) |
|
|
|
|
if (AppSettings.app(["Startup", "AppConfigAlert", "Enabled"]).ObjToBool()) |
|
|
|
|
{ |
|
|
|
|
if (env.IsDevelopment()) |
|
|
|
|
{ |
|
|
|
@ -106,4 +106,3 @@ namespace Tiobon.Core.Extensions |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |