Example #1
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;
             }
         }
     }
 }