예제 #1
0
 void RemoveClientFromWatchList(NewCamdApi api)
 {
     lock (_syncObject)
     {
         _activeClients.Remove(api);
     }
     Logger.Debug($"Removed client {api.Name} from the watchlist");
 }
예제 #2
0
 void AddClientToWatchList(NewCamdApi api)
 {
     lock (_syncObject)
     {
         _activeClients.Add(api);
     }
     Logger.Debug($"Added client {api.Name} to the watchlist");
 }