Interface IQuery<TResult>
Namespace: Momentum.Extensions.Abstractions.Messaging
Assembly: Momentum.Extensions.Abstractions.dll
Represents a query that can be sent through the message bus to retrieve data.
csharp
public interface IQuery<out TResult>
Type Parameters
TResult
The type of result returned by the query.
Remarks
This is a marker interface used by the messaging infrastructure to identify query messages. Queries should be read-only Momentum that retrieve data without modifying the system state.
Properties
Empty
Gets an empty result for this query type.
csharp
TResult? Empty { get; }
Property Value
TResult?