public static void StartAndWait(this IIS.Site site) { var wait = new PollingWait(() => site.Start(), () => site.State == IIS.ObjectState.Started); wait.Invoke(); }
public static void StopAndWait(this IIS.ApplicationPool appPool) { var wait = new PollingWait(() => appPool.Stop(), () => appPool.State == IIS.ObjectState.Stopped); wait.Invoke(); }