public async Task DownloadApplication(AppIdentity appIdentity) { IRemoteDirectory appDeploymentDir = await _deploymentsRootDirectory.GetDirectory(appIdentity.Id); if (await appDeploymentDir.Exists()) { IRemoteDirectory versionDir = await appDeploymentDir.GetDirectory(appIdentity.Version.ToString()); if (await versionDir.Exists()) { await versionDir.Download(Path.Combine(_applicationRootPath, ApplicationUtils.GetApplicationRelativePath(appIdentity))); } return; } Trace.TraceError("{0} could not be downloaded because it was not found in the blob storage", appIdentity); }