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