Interface IRequest<TResult>
- Namespace
- Stratara.Abstractions.Mediator
- Assembly
- Stratara.Abstractions.dll
Marker interface for a request that returns a result of type TResult.
public interface IRequest<TResult>
Type Parameters
TResultThe result type the handler produces.
- Extension Methods
Remarks
Implemented by IQuery<TResult> and ICommand<TResult>. The generic argument is used by IMediator to resolve the matching IQueryHandler<TRequest, TResult> — it is not consumed inside this interface itself, so it triggers an unused-type-parameter analyzer warning that the framework suppresses by design.