初版的功能

This commit is contained in:
2025-11-11 17:26:31 +08:00
parent a178c3550e
commit dde463b43b
21 changed files with 1038 additions and 197 deletions

View File

@@ -44,7 +44,7 @@ namespace FATrace.WPLApp
//System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN");
// 授权 a717c797-59e3-48de-b6b4-574a4e03dc79
if (!HslCommunication.Authorization.SetAuthorizationCode("b23b00e2-ce46-4bfc-b33c-71c47c2c11c2"))
if (!HslCommunication.Authorization.SetAuthorizationCode("c04165f1-2578-4d86-ab08-a293b7552a5f"))
{
//active failed
MessageBox.Show("授权失败当前程序只能使用8小时");
@@ -114,6 +114,7 @@ namespace FATrace.WPLApp
{
var fsql = Container.Resolve<IFreeSql>();
var sysRun = Container.Resolve<SysRunService>();
var DataServices = Container.Resolve<DataServices>();
LogService.Info("Background services initialized");
}
catch (Exception ex)
@@ -197,8 +198,10 @@ namespace FATrace.WPLApp
//containerRegistry.RegisterSingleton<TankService>();
//containerRegistry.RegisterSingleton<MachineRtDataService>();
containerRegistry.RegisterSingleton<DataServices>();
containerRegistry.RegisterSingleton<NavigationServices>();
//// 注册 Quartz 配置选项
//containerRegistry.RegisterInstance<IOptions<QuartzOptions>>(