dotnet-dynamic-query/PoweredSoft.DynamicQuery.Core/IQueryHandler.cs
2018-10-18 20:52:05 -05:00

23 lines
592 B
C#

using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PoweredSoft.DynamicQuery.Core
{
public interface IInterceptableQueryHandler
{
void AddInterceptor(IQueryInterceptor interceptor);
}
public interface IQueryHandler : IInterceptableQueryHandler
{
IQueryExecutionResult Execute(IQueryable queryable, IQueryCriteria criteria);
}
public interface IAsyncQueryHandler : IInterceptableQueryHandler
{
Task<IQueryExecutionResult> ExecuteAsync(IQueryable queryable, IQueryCriteria criteria);
}
}