public Task PublishInstanceDeploymentStatus(string clusterId, string instanceId, InstanceDeploymentStatus instanceDeploymentStatus) { CloudBlockBlob blob = _blobContainer.GetBlockBlobReference(GetInstanceStatusRelativePath(clusterId, instanceId)); string data = _deploymentStatusSerializer.Serialize(instanceDeploymentStatus); return(blob.UploadTextAsync(data)); }
public Task PublishInstanceDeploymentStatus(string clusterId, string instanceId, InstanceDeploymentStatus instanceDeploymentStatus) { string path = GetInstanceDeploymentStatusPath(clusterId, instanceId); string parentDirPath = Path.GetDirectoryName(path); if (!Directory.Exists(parentDirPath)) { Directory.CreateDirectory(parentDirPath); } File.WriteAllText(path, _deploymentStatusSerializer.Serialize(instanceDeploymentStatus)); return(Task.CompletedTask); }