using Admin.Core.Common; using log4net; using Microsoft.AspNetCore.Builder; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Admin.Core.Extensions.Middlewares { public static class AucamSheetMetalTaskMildd { private static readonly ILog log = LogManager.GetLogger(typeof(AucamSheetMetalTaskMildd)); //public static async void UseAucamSheetMetalTaskMildds(this IApplicationBuilder app, IAucamSheetMetalTaskService aucamTaskService) //{ // if (app == null) throw new ArgumentNullException(nameof(app)); // try // { // if (Appsettings.app("Middleware", "AucamTask", "Enabled").ObjToBool()) // { // await aucamTaskService.AucamTaskAsync(); // Console.WriteLine("澳柯玛钣金定时服务已开启"); // } // } // catch (Exception e) // { // log.Error($"An error was reported when starting the job service.\n{e.Message}"); // throw; // } //} } }