/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='format'> /// Specifies response output format /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <ReturnedDto> > GetAsync(this IGetRequest2 operations, string format = "json", CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(format, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='format'> /// Specifies response output format /// </param> public static IList <ReturnedDto> Get(this IGetRequest2 operations, string format = "json") { return(operations.GetAsync(format).GetAwaiter().GetResult()); }