Dispose() public method

Disposes the add-in engine.
public Dispose ( ) : void
return void
Beispiel #1
0
 public static void Shutdown()
 {
     SessionService.Shutdown();
     registry.Dispose();
     registry         = null;
     startupDirectory = null;
     initialized      = false;
 }
 /// <summary>
 /// Finalizes the add-in engine.
 /// </summary>
 public void Shutdown()
 {
     initialized = false;
     AppDomain.CurrentDomain.AssemblyLoad -= new AssemblyLoadEventHandler(OnAssemblyLoaded);
     loadedAddins.Clear();
     loadedAssemblies.Clear();
     registry.Dispose();
     registry         = null;
     startupDirectory = null;
     ClearContext();
 }
Beispiel #3
0
 /// <summary>
 /// Finalizes the add-in engine.
 /// </summary>
 public void Shutdown()
 {
     lock (LocalLock) {
         initialized = false;
         AppDomain.CurrentDomain.AssemblyLoad -= new AssemblyLoadEventHandler(OnAssemblyLoaded);
         loadedAddins     = new Dictionary <string, RuntimeAddin> ();
         loadedAssemblies = new Dictionary <Assembly, RuntimeAddin> ();
         registry.Dispose();
         registry         = null;
         startupDirectory = null;
         ClearContext();
     }
 }