#19080: Activating SweepGenerator when all modules have been able to activate

Work Item: 19080

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-10-12 15:54:43 -07:00
parent f1bef7514e
commit 31d0a9dc38

View File

@@ -48,11 +48,11 @@ namespace Orchard.Environment {
_routePublisher.Publish(allRoutes);
_modelBinderPublisher.Publish(_modelBinderProviders.SelectMany(provider => provider.GetModelBinders()));
_sweepGenerator.Activate();
using (var events = _eventsFactory()) {
events.Value.Activated();
}
_sweepGenerator.Activate();
}
public void Terminate() {