/// <summary> /// Gets latest heatmap for Traffic Manager profile. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group containing the Traffic Manager endpoint. /// </param> /// <param name='profileName'> /// The name of the Traffic Manager profile. /// </param> /// <param name='topLeft'> /// The top left latitude,longitude pair of the rectangular viewport to query /// for. /// </param> /// <param name='botRight'> /// The bottom right latitude,longitude pair of the rectangular viewport to /// query for. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <HeatMapModel> GetAsync(this IHeatMapOperations operations, string resourceGroupName, string profileName, IList <double?> topLeft = default(IList <double?>), IList <double?> botRight = default(IList <double?>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, profileName, topLeft, botRight, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets latest heatmap for Traffic Manager profile. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group containing the Traffic Manager endpoint. /// </param> /// <param name='profileName'> /// The name of the Traffic Manager profile. /// </param> /// <param name='topLeft'> /// The top left latitude,longitude pair of the rectangular viewport to query /// for. /// </param> /// <param name='botRight'> /// The bottom right latitude,longitude pair of the rectangular viewport to /// query for. /// </param> public static HeatMapModel Get(this IHeatMapOperations operations, string resourceGroupName, string profileName, IList <double?> topLeft = default(IList <double?>), IList <double?> botRight = default(IList <double?>)) { return(operations.GetAsync(resourceGroupName, profileName, topLeft, botRight).GetAwaiter().GetResult()); }