Ejemplo n.º 1
0
 /// <summary>
 /// Disposes the inner container.
 /// </summary>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         innerCatalog.Dispose();
     }
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        public void Dispose()
        {
            if (_catalog != null)
            {
                _catalog.Dispose();
            }

            if (_loadExtensions)
            {
                AppDomain.CurrentDomain.AssemblyResolve -= OnAssemblyResolve;
            }
        }
Ejemplo n.º 4
0
        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();
            }
        }
Ejemplo n.º 6
0
 protected override void Dispose(bool disposing)
 {
     _innerCatalog?.Dispose();
     base.Dispose(disposing);
 }
Ejemplo n.º 7
0
 protected override void Dispose(bool disposing)
 {
     catalogToFilter.Dispose();
     base.Dispose(disposing);
 }