增加大华驱动
This commit is contained in:
@@ -38,7 +38,7 @@ public static class Bootstrapper
|
||||
"--uris", "localhost,9001,command,调试PC;",
|
||||
|
||||
// 日志中心配置 (格式: IP,Port,Desc)
|
||||
"--sequris", "172.16.41.241,20026,日志处置中心;",
|
||||
"--sequris", "58.216.225.5,20026,日志处置中心;",
|
||||
"--seqkey", "Shine899195994250;",
|
||||
|
||||
// 端口策略
|
||||
@@ -209,7 +209,7 @@ public static class Bootstrapper
|
||||
/// </summary>
|
||||
public static void WarmUpHardware(ILogger logger)
|
||||
{
|
||||
logger.Information("[Core] Hik Sdk 开始预热.");
|
||||
logger.Information("[Core] Hik、Dahua Sdk 开始预热.");
|
||||
try
|
||||
{
|
||||
HikNativeMethods.NET_DVR_Init();
|
||||
@@ -220,6 +220,16 @@ public static class Bootstrapper
|
||||
{
|
||||
logger.Error(ex, "[Core] ⚠️ Hik Sdk 预热失败.");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
DahuaSdkManager.ForceWarmUp();
|
||||
logger.Information("[Core] Dahua Sdk 预热成功.");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error(ex, "[Core] ⚠️ Dahua Sdk 预热失败.");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user