WebAPI 支持摄像头启停控制、码流切换、审计日志的提供
This commit is contained in:
@@ -38,6 +38,18 @@ public class FrameController
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// [新增] 注销订阅者的帧需求
|
||||
/// 功能:移除指定订阅者的配置,该订阅者将不再收到任何分发帧
|
||||
/// </summary>
|
||||
/// <param name="appId">订阅者唯一标识</param>
|
||||
public void Unregister(string appId)
|
||||
{
|
||||
// ConcurrentDictionary.TryRemove 是原子的、线程安全的
|
||||
// out _ 表示我们要丢弃移除出的对象,因为我们只关心移除动作本身
|
||||
_requirements.TryRemove(appId, out _);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region --- 帧决策生成 (Frame Decision Generation) ---
|
||||
|
||||
Reference in New Issue
Block a user