示例#1
0
 /// <summary>
 /// this is the ONLY method that is allowed to update the RealScopeID of MyTargetNodeChannel
 /// </summary>
 /// <param name="pRealScopeID"></param>
 internal void UpdateSubscriptionScope(string pRealScopeID)
 {
     MyTargetNodeChannel.SetRealScopeID(pRealScopeID); // TheBaseAssets.ScopeID;
     lock (CombineSubscriptionLock)
     {
         foreach (string t in MySubscriptions.TheKeys)
         {
             MySubscriptions.MyRecords[t].RScopeID = pRealScopeID;
             MySubscriptions.UpdateID(t, TheBaseAssets.MyScopeManager.AddScopeID(MySubscriptions.MyRecords[t].Topic, true, pRealScopeID));     //GRSI: rare
         }
     }
 }