|
|
|
@ -62,6 +62,7 @@ namespace Aucam.Core.PerfusionService
|
|
|
|
|
//PLC
|
|
|
|
|
services.AddPlcSetup();
|
|
|
|
|
|
|
|
|
|
services.AddAucmaTaskSetup();
|
|
|
|
|
//支持编码大全 例如:支持 System.Text.Encoding.GetEncoding("GB2312") System.Text.Encoding.GetEncoding("GB18030")
|
|
|
|
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
|
|
|
|
}
|
|
|
|
@ -82,15 +83,15 @@ namespace Aucam.Core.PerfusionService
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="app"></param>
|
|
|
|
|
/// <param name="env"></param>
|
|
|
|
|
public void Configure(IApplicationBuilder app, ISysTasksQzService tasksQzService,
|
|
|
|
|
ISchedulerCenter schedulerCenter, IRunPlcService runPlcService)
|
|
|
|
|
public void Configure(IApplicationBuilder app, IAucamTaskService aucamTaskService, IRunPlcService runPlcService) // ISysTasksQzService tasksQzService,ISchedulerCenter schedulerCenter, IRunPlcService runPlcService
|
|
|
|
|
{
|
|
|
|
|
// 使用静态文件
|
|
|
|
|
app.UseStaticFiles();
|
|
|
|
|
// 然后是授权中间件
|
|
|
|
|
//app.UseAuthorization();
|
|
|
|
|
// 开启QuartzNetJob调度服务
|
|
|
|
|
app.UseQuartzJobMildd(tasksQzService, schedulerCenter);
|
|
|
|
|
// app.UseQuartzJobMildd(tasksQzService, schedulerCenter);
|
|
|
|
|
app.AucmaTaskMildds(aucamTaskService);
|
|
|
|
|
//PLC
|
|
|
|
|
app.UsePlcMildd(runPlcService);
|
|
|
|
|
}
|
|
|
|
|