internal void RemoveExistingHandler(LocalComponentCommunicationsHandler handler) { if (this._componentCommunicationsHandlersTable.ContainsKey(handler.OwnerComponentName)) { this._componentCommunicationsHandlersTable.Remove(handler.OwnerComponentName); } }
internal void AddNewHandler(LocalComponentCommunicationsHandler handler) { if (!this._componentCommunicationsHandlersTable.ContainsKey(handler.OwnerComponentName)) { this._componentCommunicationsHandlersTable.Add(handler.OwnerComponentName, handler); } }
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) { } }