Esempio n. 1
0
        public Task <InstanceDeploymentStatus> FetchInstanceDeploymentStatus(string clusterId, string instanceId)
        {
            string path = GetInstanceDeploymentStatusPath(clusterId, instanceId);
            string data = File.ReadAllText(path);

            return(Task.FromResult(_deploymentStatusSerializer.Deserialize(data)));
        }
Esempio n. 2
0
        private async Task <InstanceDeploymentStatus> FetchInstanceDeploymentStatus(CloudBlockBlob instanceBlob)
        {
            string data = await instanceBlob.DownloadTextAsync();

            return(_deploymentStatusSerializer.Deserialize(data));
        }