private IEnumerable<DeployResult> PurgeAndGetDeployments()
{
// Order the results by date (newest first). Previously, we supported OData to allow
// arbitrary queries, but that was way overkill and brought in too many large binaries.
IEnumerable<DeployResult> results = EnumerateResults().OrderByDescending(t => t.ReceivedTime).ToList();
try
{
results = PurgeDeployments(results);
}
catch (Exception ex)
{
// tolerate purge error
_analytics.UnexpectedException(ex);
}
return results;
}