Exemplo n.º 1
0
        internal static async Task <string> GetGoalStateFileJsonAsync(Uri goalStateUri)
        {
            string goalStateJson = null;

            try
            {
                goalStateJson = await StandaloneUtility.GetContentsFromUriAsyncWithRetry(goalStateUri, TimeSpan.FromMinutes(Constants.FabricOperationTimeoutInMinutes), CancellationToken.None);
            }
            catch (FabricValidationException ex)
            {
                SFDeployerTrace.WriteError(StringResources.Error_SFGoalStateFileNotDownloaded, goalStateUri, ex.ToString());
            }

            return(goalStateJson);
        }