private IEnumerable<DeployResult> EnumerateResults()
{
if (!FileSystemHelpers.DirectoryExists(_environment.DeploymentsPath))
{
yield break;
}
string activeDeploymentId = _status.ActiveDeploymentId;
bool isDeploying = IsDeploying;
foreach (var id in FileSystemHelpers.GetDirectories(_environment.DeploymentsPath))
{
DeployResult result = GetResult(id, activeDeploymentId, isDeploying);
if (result != null)
{
yield return result;
}
}
}