Exemplo n.º 1
0
        public void Dispose()
        {
            if (_wasDisposed)
            {
                return;
            }
            _wasDisposed = true;

            if (Role == ContainerRole.Root)
            {
                _singletons.DisposeAndClear();
            }

            ContainerCache.DisposeAndClear();


            _transients.DisposeAndClear();
            _pluginGraph.SafeDispose();

            if (Role == ContainerRole.Root)
            {
                _profiles.AllProfiles().Each(x => x.Dispose());
            }

            _trackedDisposables.Each(x => x.Dispose());
        }
Exemplo n.º 2
0
        public void Dispose()
        {
            if (Role == ContainerRole.Root)
            {
                _singletons.DisposeAndClear();
            }

            _transients.DisposeAndClear();
            _pluginGraph.SafeDispose();
        }
Exemplo n.º 3
0
 public void Dispose()
 {
     _transients.DisposeAndClear();
     _pluginGraph.SafeDispose();
 }
Exemplo n.º 4
0
 public void Dispose()
 {
     _transientCache.DisposeAndClear();
     _outer.SafeDispose();
 }