Пример #1
0
 internal void RemoveExistingHandler(LocalComponentCommunicationsHandler handler)
 {
     if (this._componentCommunicationsHandlersTable.ContainsKey(handler.OwnerComponentName))
     {
         this._componentCommunicationsHandlersTable.Remove(handler.OwnerComponentName);
     }
 }
Пример #2
0
 internal void AddNewHandler(LocalComponentCommunicationsHandler handler)
 {
     if (!this._componentCommunicationsHandlersTable.ContainsKey(handler.OwnerComponentName))
     {
         this._componentCommunicationsHandlersTable.Add(handler.OwnerComponentName, handler);
     }
 }
Пример #3
0
 internal void DisposeAllHandlers()
 {
     try
     {
         IEnumerator enumm = this._componentCommunicationsHandlersTable.GetEnumerator();
         LocalComponentCommunicationsHandler handler = default(LocalComponentCommunicationsHandler);
         while (enumm.MoveNext())
         {
             handler = (LocalComponentCommunicationsHandler)(((DictionaryEntry)enumm.Current).Value);
             try
             {
                 handler.Dispose();
             }
             catch (Exception)
             {
             }
         }
     }
     catch (Exception)
     {
     }
 }