/// <summary>
        /// Asynchronously Retrieve Jobcode Assignments, with support for cancellation.
        /// </summary>
        /// <remarks>
        /// Retrieves a list of all jobcode assignments associated with users,
        /// with optional filters to narrow down the results.
        /// </remarks>
        /// <param name="filter">
        /// An instance of the <see cref="JobcodeAssignmentFilter"/> 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="JobcodeAssignment"/> objects, along with an output
        /// instance of the <see cref="ResultsMeta"/> class containing additional data.
        /// </returns>
        public async Task <(IList <JobcodeAssignment>, ResultsMeta)> GetJobcodeAssignmentsAsync(
            JobcodeAssignmentFilter filter,
            RequestOptions options,
            CancellationToken cancellationToken)
        {
            var context = new GetContext <JobcodeAssignment>(EndpointName.JobcodeAssignments, filter, options);

            await ExecuteOperationAsync(context, cancellationToken).ConfigureAwait(false);

            return(context.Results.Items, context.ResultsMeta);
        }
 /// <summary>
 /// Asynchronously Retrieve Jobcode Assignments.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all jobcode assignments associated with users,
 /// with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="JobcodeAssignmentFilter"/> 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="JobcodeAssignment"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public async Task <(IList <JobcodeAssignment>, ResultsMeta)> GetJobcodeAssignmentsAsync(
     JobcodeAssignmentFilter filter,
     RequestOptions options)
 {
     return(await GetJobcodeAssignmentsAsync(filter, options, default).ConfigureAwait(false));
 }
 /// <summary>
 /// Retrieve Jobcode Assignments.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all jobcode assignments associated with users,
 /// with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="JobcodeAssignmentFilter"/> 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="JobcodeAssignment"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public (IList <JobcodeAssignment>, ResultsMeta) GetJobcodeAssignments(
     JobcodeAssignmentFilter filter,
     RequestOptions options)
 {
     return(AsyncUtil.RunSync(() => GetJobcodeAssignmentsAsync(filter, options)));
 }
 /// <summary>
 /// Asynchronously Retrieve Jobcode Assignments, with support for cancellation.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all jobcode assignments associated with users,
 /// with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="JobcodeAssignmentFilter"/> 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="JobcodeAssignment"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public async Task <(IList <JobcodeAssignment>, ResultsMeta)> GetJobcodeAssignmentsAsync(
     JobcodeAssignmentFilter filter,
     CancellationToken cancellationToken)
 {
     return(await GetJobcodeAssignmentsAsync(filter, null, cancellationToken).ConfigureAwait(false));
 }
 /// <summary>
 /// Retrieve Jobcode Assignments.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all jobcode assignments associated with users,
 /// with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="JobcodeAssignmentFilter"/> class, for narrowing down the results.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="JobcodeAssignment"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public (IList <JobcodeAssignment>, ResultsMeta) GetJobcodeAssignments(
     JobcodeAssignmentFilter filter)
 {
     return(AsyncUtil.RunSync(() => GetJobcodeAssignmentsAsync(filter)));
 }