Add contact feature
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using BeauFindlay.Shared.Abstractions;
|
||||
using MediatR;
|
||||
|
||||
namespace BeauFindlay.Api.Abstractions.Messaging;
|
||||
|
||||
public interface ICommand : IRequest<Result>, IBaseCommand
|
||||
{
|
||||
}
|
||||
|
||||
public interface ICommand<TReponse> : IRequest<Result<TReponse>>, IBaseCommand
|
||||
{
|
||||
}
|
||||
|
||||
public interface IBaseCommand
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using BeauFindlay.Shared.Abstractions;
|
||||
using MediatR;
|
||||
|
||||
namespace BeauFindlay.Api.Abstractions.Messaging;
|
||||
|
||||
public interface ICommandHandler<TCommand> : IRequestHandler<TCommand, Result>
|
||||
where TCommand : ICommand
|
||||
{
|
||||
}
|
||||
|
||||
public interface ICommandHandler<TCommand, TResponse> : IRequestHandler<TCommand, Result<TResponse>>
|
||||
where TCommand : ICommand<TResponse>
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
using MediatR;
|
||||
|
||||
namespace BeauFindlay.Api.Abstractions.Messaging;
|
||||
|
||||
public interface IDomainEvent : INotification
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using BeauFindlay.Shared.Abstractions;
|
||||
using MediatR;
|
||||
|
||||
namespace BeauFindlay.Api.Abstractions.Messaging;
|
||||
|
||||
public interface IQuery<TResponse> : IRequest<Result<TResponse>>
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using BeauFindlay.Shared.Abstractions;
|
||||
using MediatR;
|
||||
|
||||
namespace BeauFindlay.Api.Abstractions.Messaging;
|
||||
|
||||
public interface IQueryHandler<TQuery, TResponse> : IRequestHandler<TQuery, Result<TResponse>>
|
||||
where TQuery : IQuery<TResponse>
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user