21 lines
617 B
C#
21 lines
617 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Svrnty.CQRS.Abstractions.Discovery;
|
|
|
|
public interface IQueryMeta
|
|
{
|
|
string Name { get; }
|
|
Type QueryType { get; }
|
|
Type ServiceType { get; }
|
|
Type QueryResultType { get; }
|
|
string Category { get; }
|
|
string LowerCamelCaseName { get; }
|
|
|
|
/// <summary>
|
|
/// Compiled delegate for invoking the handler without reflection.
|
|
/// Signature: (object handler, object query, CancellationToken ct) => Task<object?>
|
|
/// </summary>
|
|
Func<object, object, CancellationToken, Task<object?>> CompiledInvoker { get; }
|
|
} |