/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='requests'> /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse ReceiveWorkerScreeningsWithHttpMessages(this ISpiceClient operations, IList <IncompleteWorkerScreening> requests = default(IList <IncompleteWorkerScreening>), Dictionary <string, List <string> > customHeaders = null) { return(operations.ReceiveWorkerScreeningsWithHttpMessagesAsync(requests, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='requests'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ReceiveWorkerScreeningsAsync(this ISpiceClient operations, IList <IncompleteWorkerScreening> requests = default(IList <IncompleteWorkerScreening>), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ReceiveWorkerScreeningsWithHttpMessagesAsync(requests, null, cancellationToken).ConfigureAwait(false)).Dispose(); }