/// <summary> /// Gets information about the detectors available for a given Batch account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the Batch account. /// </param> /// <param name='accountName'> /// The name of the Batch account. /// </param> public static IPage <DetectorResponse> ListDetectors(this IBatchAccountOperations operations, string resourceGroupName, string accountName) { return(operations.ListDetectorsAsync(resourceGroupName, accountName).GetAwaiter().GetResult()); }