11 lines
No EOL
377 B
C#
11 lines
No EOL
377 B
C#
using MediatR;
|
|
|
|
namespace Femto.Common.Domain;
|
|
|
|
public interface ICommand : IRequest;
|
|
|
|
public interface ICommand<out TResult> : IRequest<TResult>;
|
|
|
|
public interface ICommandHandler<in TCommand> : IRequestHandler<TCommand> where TCommand : ICommand;
|
|
|
|
public interface ICommandHandler<in TCommand, TResult> : IRequestHandler<TCommand, TResult> where TCommand : ICommand<TResult>; |