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

17 lines
660 B
C#
Raw Normal View History

2023-10-02 11:25:45 -04:00
using System.Linq;
2021-02-02 20:06:56 -05:00
using System.Threading;
using System.Threading.Tasks;
namespace PoweredSoft.CQRS.DynamicQuery.Abstractions
{
public interface IAlterQueryableService<TSource, TDestination>
{
2021-02-02 20:06:56 -05:00
Task<IQueryable<TSource>> AlterQueryableAsync(IQueryable<TSource> query, IDynamicQuery dynamicQuery, CancellationToken cancellationToken = default);
}
public interface IAlterQueryableService<TSource, TDestination, TParams>
where TParams : class
{
2021-02-02 20:06:56 -05:00
Task<IQueryable<TSource>> AlterQueryableAsync(IQueryable<TSource> query, IDynamicQueryParams<TParams> dynamicQuery, CancellationToken cancellationToken = default);
}
}