dotnet-dynamic-query/PoweredSoft.DynamicQuery.Core/IQueryHandler.cs

23 lines
592 B
C#
Raw Normal View History

2018-10-17 22:14:21 -04:00
using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PoweredSoft.DynamicQuery.Core
{
2018-10-18 21:52:05 -04:00
public interface IInterceptableQueryHandler
2018-10-17 22:14:21 -04:00
{
void AddInterceptor(IQueryInterceptor interceptor);
}
2018-10-18 21:52:05 -04:00
public interface IQueryHandler : IInterceptableQueryHandler
{
IQueryExecutionResult Execute(IQueryable queryable, IQueryCriteria criteria);
}
public interface IAsyncQueryHandler : IInterceptableQueryHandler
{
Task<IQueryExecutionResult> ExecuteAsync(IQueryable queryable, IQueryCriteria criteria);
}
2018-10-17 22:14:21 -04:00
}