/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <Employee> > ApiEmployeesGetAsync(this IConsoleApp2Client operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ApiEmployeesGetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static IList <Employee> ApiEmployeesGet(this IConsoleApp2Client operations) { return(Task.Factory.StartNew(s => ((IConsoleApp2Client)s).ApiEmployeesGetAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }