private void ClearCamera()
{
NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
logEx.Trace("Enter: TiandyVideoMonitor.ClearCamera().");
if (this.cameraOperateLock.TryEnterWriteLock(CgwConst.ENTER_LOCK_WAIT_TIME))
{
try
{
this.tiandyCameraDictionary = new Dictionary<string, TiandyCamera>();
this.hostDictionary = new Dictionary<string, Host>();
this.mediaServerDictionary = new Dictionary<string, MediaServer>();
this.groupDic = new Dictionary<string, CameraGroup>();
this.nodeRelationList = new List<NodeRelation>();
}
finally
{
this.cameraOperateLock.ExitWriteLock();
}
}
logEx.Trace("Clear Camera which in the cache success.");
}