/// <summary> /// Lists all Traffic Manager profiles within a resource group. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.TrafficManager.IProfileOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group containing the Traffic /// Manager profiles to be listed. /// </param> /// <returns> /// The response to a Traffic Manager profile 'ListAll' or /// 'ListAllInResourceGroup' operation. /// </returns> public static Task <ProfileListResponse> ListAllInResourceGroupAsync(this IProfileOperations operations, string resourceGroupName) { return(operations.ListAllInResourceGroupAsync(resourceGroupName, CancellationToken.None)); }