I'm working on some kind of deployment timer job at the moment. Deploying, Retracting and so on works fine... At the moment the job grabs all solutions to deploy, add and retract them if neccessary. After that he goes through every solution and deploy it:
foreach (Solution solution in _solutions)
{
SPFarm.Local.Solutions[solution.FileName].DeployLocal(solution.ContainsWebResources, true);
}
This procedere is quite fast, but at the end of the loop the server is still deploying. For every single solution he is up... and down... and up... and so on. Now my question is: Is there any way I can start the deployment/retraction process for more than one solution? So the server goes down only once, and comes back when he's ready?
I'm sorry, I don't know how to describe it that well... Hope you understand what I mean.