/// <summary> /// Disposes the inner container. /// </summary> protected override void Dispose(bool disposing) { if (disposing) { innerCatalog.Dispose(); } }
private static void CleanupFields() { if (container != null) { container.Dispose(); container = null; } if (serviceProvider != null) { serviceProvider.Dispose(); serviceProvider = null; } if (composition != null) { composition.Dispose(); composition = null; } if (globalCatalog != null) { globalCatalog.Dispose(); globalCatalog = null; } componentHost = null; catalogProvider = null; localComponentModel = null; }
public void Dispose() { if (_catalog != null) { _catalog.Dispose(); } if (_loadExtensions) { AppDomain.CurrentDomain.AssemblyResolve -= OnAssemblyResolve; } }
public void Dispose() { if (_container != null) { _container.Dispose(); } if (_rootCatalog != null) { _rootCatalog.Dispose(); } }
public void Dispose() { CompositionContainer container = this._compositionContainer; ComposablePartCatalog catalog = this._partCatalog; this._compositionContainer = null; this._partCatalog = null; if (container != null) { container.Dispose(); } if (catalog != null) { catalog.Dispose(); } }
protected override void Dispose(bool disposing) { _innerCatalog?.Dispose(); base.Dispose(disposing); }
protected override void Dispose(bool disposing) { catalogToFilter.Dispose(); base.Dispose(disposing); }