Exemplo n.º 1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='clientId'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <HistoryEntry> > GetHistoryAsync(this IOperationsCacheAPI operations, string clientId = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetHistoryWithHttpMessagesAsync(clientId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
        public async Task <IEnumerable <HistoryClientEntry> > GetHistoryByClientId(string clientId)
        {
            var response = await _apiClient.GetHistoryWithHttpMessagesAsync(clientId);

            var operations = response.Body;

            return(operations == null ? new List <HistoryClientEntry>() : operations.Select(x => x.FromApiModel()));
        }