/// <summary> /// Lists the hardware component groups at device-level. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> public static IEnumerable <HardwareComponentGroup> ListByDevice(this IHardwareComponentGroupsOperations operations, string deviceName, string resourceGroupName, string managerName) { return(operations.ListByDeviceAsync(deviceName, resourceGroupName, managerName).GetAwaiter().GetResult()); }