Example #1
0
    /// <inheritdoc />
    public override async Task <IEnumerable <TEntity> > DetailsManyAsync <TEntity>(DetailsManyRequest <Guid> request, CancellationToken cancellationToken = default)
    {
        if (request == null)
        {
            throw new ArgumentNullException(nameof(request));
        }

        return(await base.DetailsManyAsync <TEntity>(request, cancellationToken));
    }
Example #2
0
        /// <summary>
        /// Details Many.
        /// Invokes the 'details' endpoint of the api, with multiple id's.
        /// </summary>
        /// <typeparam name="TEntity">The entity type.</typeparam>
        /// <param name="request">The <see cref="DetailsManyRequest"/>.</param>
        /// <param name="cancellationToken">The <see cref="CancellationToken"/>.</param>
        /// <returns>The matching entities.</returns>
        public virtual async Task <IEnumerable <TEntity> > DetailsManyAsync <TEntity>(DetailsManyRequest request, CancellationToken cancellationToken = default)
            where TEntity : class
        {
            if (request == null)
            {
                throw new ArgumentNullException(nameof(request));
            }

            return(await this.Invoke <DetailsManyRequest, IEnumerable <TEntity> >(request, cancellationToken));
        }