/// <summary> /// Retrieves one value from the list of values /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// The id of the item to be retrieved /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ValueObj> GetByidAsync(this IValues operations, int id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByidWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }