dotnet-dynamic-query/PoweredSoft.DynamicQuery.Core/IAfterReadInterceptor.cs
2019-03-22 15:38:13 -05:00

38 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace PoweredSoft.DynamicQuery.Core
{
public interface IAfterReadEntityInterceptor<T> : IQueryInterceptor
{
void AfterReadEntity(List<T> entities);
}
public interface IAfterReadEntityInterceptorAsync<T> : IQueryInterceptor
{
Task AfterReadEntityAsync(List<T> entities, CancellationToken cancellationToken = default(CancellationToken));
}
public interface IAfterReadInterceptor<T> : IQueryInterceptor
{
void AfterRead(List<Tuple<T, object>> pairs);
}
public interface IAfterReadInterceptorAsync<T> : IQueryInterceptor
{
Task AfterReadAsync(List<Tuple<T, object>> pairs, CancellationToken cancellationToken = default(CancellationToken));
}
public interface IAfterReadInterceptor<T, T2> : IQueryInterceptor
{
void AfterRead(List<Tuple<T, T2>> pairs);
}
public interface IAfterReadInterceptorAsync<T, T2> : IQueryInterceptor
{
Task AfterReadAsync(List<Tuple<T, T2>> pairs, CancellationToken cancellationToken = default(CancellationToken));
}
}