public void Dispose() { services.ForEachReverse(typeService => { typeService.Value.ForEachReverse(idService => { Unload(typeService.Key, idService.Key); }); }); services.Clear(); classFactories.Clear(); }