Esempio n. 1
0
 private void SwitchServer2AspNet40(InstallAction action, Setup.SetupVariables setupVariables)
 {
     var sam = new ServerActionManager(setupVariables);
     sam.AddAction(new RegisterAspNet40Action());
     sam.AddAction(new EnableAspNetWebExtensionAction());
     sam.AddAction(new MigrateServerWebConfigAction());
     sam.AddAction(new AdjustHttpRuntimeRequestLengthAction());
     sam.AddAction(new SwitchAppPoolAspNetVersion());
     //
     sam.ActionError += new EventHandler<ActionErrorEventArgs>((object sender, ActionErrorEventArgs e) =>
     {
         throw e.OriginalException;
     });
     //
     sam.Start();
 }