dotnet-cqrs/OpenHarbor.CQRS.DynamicQuery.Abstractions/IAlterQueryableService.cs

16 lines
624 B
C#
Raw Normal View History

using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace OpenHarbor.CQRS.DynamicQuery.Abstractions;
public interface IAlterQueryableService<TSource, TDestination>
{
Task<IQueryable<TSource>> AlterQueryableAsync(IQueryable<TSource> query, IDynamicQuery dynamicQuery, CancellationToken cancellationToken = default);
}
public interface IAlterQueryableService<TSource, TDestination, in TParams>
where TParams : class
{
Task<IQueryable<TSource>> AlterQueryableAsync(IQueryable<TSource> query, IDynamicQueryParams<TParams> dynamicQuery, CancellationToken cancellationToken = default);
}