Esempio n. 1
0
 private object CreateService(IServiceContainer container, Type serviceType)
 {
     if (typeof(IXSharpLibraryManager) == serviceType)
     {
         return(_libraryManager = new XSharpLibraryManager(this));
     }
     return(null);
 }
Esempio n. 2
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         this.UnRegisterDebuggerEvents();
         if (null != _libraryManager)
         {
             _libraryManager.Dispose();
             _libraryManager = null;
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }
 protected override void Dispose(bool disposing)
 {
     try
     {
         UIThread.DoOnUIThread(() => this.UnRegisterDebuggerEvents());
         if (null != _libraryManager)
         {
             _libraryManager.Dispose();
             _libraryManager = null;
         }
     }
     finally
     {
         UIThread.DoOnUIThread(() => base.Dispose(disposing));
     }
 }