Пример #1
0
 protected override void DisposeManagedResources()
 {
     if (isStarted)
     {
         if (!ForcedReadManifest)
         {
             tokenSource.Cancel();
         }
         ((IDisposable)remoteControlClient).Dispose();
         scheduler.CancelTimed(true);
     }
 }
Пример #2
0
 /// <summary>
 /// Dispose managed resources implementation
 /// </summary>
 protected override void DisposeManagedResources()
 {
     if (!disposedContextPart)
     {
         lock (disposeLocker)
         {
             if (!disposedContextPart)
             {
                 scheduler.CancelTimed(true);
                 FlushPostedProperties();
                 if (!overrideInit)
                 {
                     hostSession.PostValidatedEvent(BuildCloseEvent());
                 }
                 hostSession.RemoveContext(this);
                 disposedContextPart = true;
             }
         }
     }
 }
Пример #3
0
 private void DisposeInit()
 {
     base.DisposeManagedResources();
     scheduler.CancelTimed(true);
     ProcessEvents();
 }