Ejemplo n.º 1
0
 /// <summary>
 /// Remove binary feed
 /// </summary>
 public void UnregisterBinaryDataFeed(ReViewFeedBinaryData dataFeed)
 {
     lock (binaryDataFeedsLock)
     {
         binaryDataFeedMap.Remove(dataFeed.DebugID);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Add binary feed
 /// </summary>
 public ReViewFeedBinaryData RegisterBinaryDataFeed()
 {
     try
     {
         lock (operationLock)
         {
             IReView_Tool RPCToolProxy = RPC_Manager.Instance.Get_Client_Proxy <RPC_Client_Proxy_IReView_Tool>();
             if (RPCToolProxy != null)
             {
                 ReViewFeedBinaryData newDataFeed = new ReViewFeedBinaryData();
                 long id = GetUniqueID();
                 newDataFeed.DebugID = id;
                 lock (binaryDataFeedsLock)
                 {
                     binaryDataFeedMap.Add(newDataFeed.DebugID, newDataFeed);
                 }
                 return(newDataFeed);
             }
         }
     }
     catch (Exception)
     {
         Disconnect();
     }
     return(null);
 }