public void CallDispose() { IAbstractionConfiguration[] configurations = abstractionConfigurationCollection.GetAll(); foreach (IAbstractionConfiguration configuration in configurations) { if (configuration != null) { CallDisposeOnConfiguration(configuration); } } }
public void CallDispose() { var configurations = abstractionConfigurationCollection .GetAll() .Where(x => x != null) .SelectMany(x => x.GetImplementations()) .OrderByDescending(x => x.InstanceCreationOrder); foreach (var configuration in configurations) { configuration.DisposeInstance(); } }
public IAbstractionConfiguration[] GetAll() { //NOTE !!! return(leafCollection.GetAll()); }