/// <summary> /// Retrieves all the file shares in a device. /// </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 <FileShare> ListByDevice(this IFileSharesOperations operations, string deviceName, string resourceGroupName, string managerName) { return(operations.ListByDeviceAsync(deviceName, resourceGroupName, managerName).GetAwaiter().GetResult()); }