Dispose() public méthode

Disposes the add-in engine.
public Dispose ( ) : void
Résultat void
Exemple #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();
 }
Exemple #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();
     }
 }