/// <summary> /// Asynchronously Retrieve Managed Clients, with support for cancellation. /// </summary> /// <remarks> /// Retrieves a list of managed clients available from your account, /// with optional filters to narrow down the results. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="ManagedClientFilter"/> class, for narrowing down the results. /// </param> /// <param name="options"> /// An instance of the <see cref="RequestOptions"/> class, for customizing method processing. /// </param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns> /// An enumerable set of <see cref="ManagedClient"/> objects, along with an output /// instance of the <see cref="ResultsMeta"/> class containing additional data. /// </returns> public async Task <(IList <ManagedClient>, ResultsMeta)> GetManagedClientsAsync( ManagedClientFilter filter, RequestOptions options, CancellationToken cancellationToken) { var context = new GetContext <ManagedClient>(EndpointName.ManagedClients, filter, options); await ExecuteOperationAsync(context, cancellationToken).ConfigureAwait(false); return(context.Results.Items, context.ResultsMeta); }
/// <summary> /// Retrieve Managed Clients. /// </summary> /// <remarks> /// Retrieves a list of managed clients available from your account, /// with optional filters to narrow down the results. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="ManagedClientFilter"/> class, for narrowing down the results. /// </param> /// <returns> /// An enumerable set of <see cref="ManagedClient"/> objects, along with an output /// instance of the <see cref="ResultsMeta"/> class containing additional data. /// </returns> public (IList <ManagedClient>, ResultsMeta) GetManagedClients( ManagedClientFilter filter) { return(AsyncUtil.RunSync(() => GetManagedClientsAsync(filter))); }
/// <summary> /// Asynchronously Retrieve Managed Clients. /// </summary> /// <remarks> /// Retrieves a list of managed clients available from your account, /// with optional filters to narrow down the results. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="ManagedClientFilter"/> class, for narrowing down the results. /// </param> /// <param name="options"> /// An instance of the <see cref="RequestOptions"/> class, for customizing method processing. /// </param> /// <returns> /// An enumerable set of <see cref="ManagedClient"/> objects, along with an output /// instance of the <see cref="ResultsMeta"/> class containing additional data. /// </returns> public async Task <(IList <ManagedClient>, ResultsMeta)> GetManagedClientsAsync( ManagedClientFilter filter, RequestOptions options) { return(await GetManagedClientsAsync(filter, options, default).ConfigureAwait(false)); }
/// <summary> /// Asynchronously Retrieve Managed Clients, with support for cancellation. /// </summary> /// <remarks> /// Retrieves a list of managed clients available from your account, /// with optional filters to narrow down the results. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="ManagedClientFilter"/> 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 enumerable set of <see cref="ManagedClient"/> objects, along with an output /// instance of the <see cref="ResultsMeta"/> class containing additional data. /// </returns> public async Task <(IList <ManagedClient>, ResultsMeta)> GetManagedClientsAsync( ManagedClientFilter filter, CancellationToken cancellationToken) { return(await GetManagedClientsAsync(filter, null, cancellationToken).ConfigureAwait(false)); }
/// <summary> /// Asynchronously Retrieve Managed Clients. /// </summary> /// <remarks> /// Retrieves a list of managed clients available from your account, /// with optional filters to narrow down the results. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="ManagedClientFilter"/> class, for narrowing down the results. /// </param> /// <returns> /// An enumerable set of <see cref="ManagedClient"/> objects, along with an output /// instance of the <see cref="ResultsMeta"/> class containing additional data. /// </returns> public async Task <(IList <ManagedClient>, ResultsMeta)> GetManagedClientsAsync( ManagedClientFilter filter) { return(await GetManagedClientsAsync(filter, null, default).ConfigureAwait(false)); }
/// <summary> /// Retrieve Managed Clients. /// </summary> /// <remarks> /// Retrieves a list of managed clients available from your account, /// with optional filters to narrow down the results. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="ManagedClientFilter"/> class, for narrowing down the results. /// </param> /// <param name="options"> /// An instance of the <see cref="RequestOptions"/> class, for customizing method processing. /// </param> /// <returns> /// An enumerable set of <see cref="ManagedClient"/> objects, along with an output /// instance of the <see cref="ResultsMeta"/> class containing additional data. /// </returns> public (IList <ManagedClient>, ResultsMeta) GetManagedClients( ManagedClientFilter filter, RequestOptions options) { return(AsyncUtil.RunSync(() => GetManagedClientsAsync(filter, options))); }