public static async Task StartAndWait(this IIS.ApplicationPool appPool) { appPool.Start(); await WaitForState(() => appPool.State, IIS.ObjectState.Started); }
public static void StartAndWait(this IIS.ApplicationPool appPool) { var wait = new PollingWait(() => appPool.Start(), () => appPool.State == IIS.ObjectState.Started); wait.Invoke(); }