|
|
@ -85,8 +85,6 @@ public class CameraDataCenter : ISingleton |
|
|
|
/// https://blog.csdn.net/qq_28368039/article/details/118597396
|
|
|
|
/// </summary>
|
|
|
|
private async Task RefreshCameraPtzInfos() |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
string[] cameraIpList = await _cache.HKeysAsync(CacheInfo.CameraIpCounts); |
|
|
|
List<Task> tasks = new(); |
|
|
@ -96,10 +94,6 @@ public class CameraDataCenter : ISingleton |
|
|
|
} |
|
|
|
await Task.WhenAny(Task.WhenAll(tasks), Task.Delay(_options.CameraPtz.Timeout)); |
|
|
|
} |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 刷新相机 ptz
|
|
|
@ -117,8 +111,6 @@ public class CameraDataCenter : ISingleton |
|
|
|
/// 刷新所有 markSearcher
|
|
|
|
/// </summary>
|
|
|
|
private async Task RefreshMarkSearchers() |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
string[] cameraIdList = await _cache.HKeysAsync(CacheInfo.CameraId2Ip); |
|
|
|
List<Task> tasks = new(); |
|
|
@ -128,10 +120,6 @@ public class CameraDataCenter : ISingleton |
|
|
|
} |
|
|
|
await Task.WhenAny(Task.WhenAll(tasks), Task.Delay(_options.CameraPtz.Timeout)); |
|
|
|
} |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 刷新 markSearcher
|
|
|
|