private IEnumerable <DeployResult> EnumerateResults() { if (!FileSystemHelpers.DirectoryExists(_environment.DeploymentsPath)) { yield break; } string activeDeploymentId = _status.ActiveDeploymentId; bool isDeploying = IsDeploying; foreach (var id in FileSystemHelpers.GetDirectoryNames(_environment.DeploymentsPath).Where(p => !p.Equals(@"tools", StringComparison.OrdinalIgnoreCase))) { DeployResult result = GetResult(id, activeDeploymentId, isDeploying); if (result != null) { yield return(result); } } }