Ejemplo n.º 1
0
 private void MonitorExtensions()
 {
     _cacheManager.Get("RabbitHost_Extensions",
                       ctx =>
     {
         _extensionMonitoringCoordinator.MonitorExtensions(ctx.Monitor);
         _hostLocalRestart.Monitor(ctx.Monitor);
         DisposeShellContext();
         return(string.Empty);
     });
 }
Ejemplo n.º 2
0
 private void MonitorExtensions()
 {
     // This is a "fake" cache entry to allow the extension loader coordinator
     // notify us (by resetting _current to "null") when an extension has changed
     // on disk, and we need to reload new/updated extensions.
     _cacheManager.Get("OrchardHost_Extensions",
                       ctx => {
         _extensionMonitoringCoordinator.MonitorExtensions(ctx.Monitor);
         _hostLocalRestart.Monitor(ctx.Monitor);
         DisposeShellContext();
         return("");
     });
 }