Пример #1
0
 public override void Dispose()
 {
     lock (Lock)
     {
         VerifyDisposed();
         //Do not use Agent because it may cause initialization (but it's not needed here)
         _adapter.TryDispose();
         base.Dispose();
     }
 }
Пример #2
0
 public override void Dispose()
 {
     lock (Lock)
     {
         VerifyDisposed();
         _hostApplications.ApplicationConnected       -= OnHostApplicationConnected;
         _hostApplications.ApplicationDisconnected    -= OnHostApplicationDisconnected;
         _supportedHostApplications.CollectionChanged -= OnSupportedHostApplicationsCollectionChanged;
         _adapter.TryDispose();
         base.Dispose();
     }
 }