/// <summary> /// Returns all assets including nontradable. /// </summary> /// <param name='operations'>The operations group for this extension method.</param> /// <param name='cancellationToken'>The cancellation token.</param> /// <returns></returns> public static async Task <IList <Asset> > AssetGetAllAsync(this IAssetsService operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var result = await operations.AssetGetAllWithHttpMessagesAsync(true, null, cancellationToken).ConfigureAwait(false)) { return(result.Body); } }