/// <summary> /// Asynchronously Retrieve Last Modified Timestamps, with support for cancellation. /// </summary> /// <remarks> /// Retrieves a list of last modified timestamps associated with each requested API endpoint. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="LastModifiedTimestampsFilter"/> class, for narrowing down the results. /// </param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns> /// An instance of a <see cref="LastModifiedTimestamps"/> class. /// </returns> public async Task <LastModifiedTimestamps> GetLastModifiedTimestampsAsync( LastModifiedTimestampsFilter filter, CancellationToken cancellationToken) { var context = new GetContext <LastModifiedTimestamps>(EndpointName.LastModifiedTimestamps, filter); await ExecuteOperationAsync(context, cancellationToken).ConfigureAwait(false); return(context.Results.Items.FirstOrDefault()); }
/// <summary> /// Retrieve Last Modified Timestamps. /// </summary> /// <remarks> /// Retrieves a list of last modified timestamps associated with each requested API endpoint. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="LastModifiedTimestampsFilter"/> class, for narrowing down the results. /// </param> /// <returns> /// An instance of a <see cref="LastModifiedTimestamps"/> class. /// </returns> public LastModifiedTimestamps GetLastModifiedTimestamps(LastModifiedTimestampsFilter filter) { return(AsyncUtil.RunSync(() => GetLastModifiedTimestampsAsync(filter))); }
/// <summary> /// Asynchronously Retrieve Last Modified Timestamps. /// </summary> /// <remarks> /// Retrieves a list of last modified timestamps associated with each requested API endpoint. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="LastModifiedTimestampsFilter"/> class, for narrowing down the results. /// </param> /// <returns> /// An instance of a <see cref="LastModifiedTimestamps"/> class. /// </returns> public async Task <LastModifiedTimestamps> GetLastModifiedTimestampsAsync( LastModifiedTimestampsFilter filter) { return(await GetLastModifiedTimestampsAsync(filter, default).ConfigureAwait(false)); }