Add contact feature

This commit is contained in:
2024-03-09 09:47:49 +00:00
parent 78bef4c113
commit a00a8d11ac
33 changed files with 1126 additions and 44 deletions

View File

@@ -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
{
}

View File

@@ -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>
{
}

View File

@@ -0,0 +1,7 @@
using MediatR;
namespace BeauFindlay.Api.Abstractions.Messaging;
public interface IDomainEvent : INotification
{
}

View File

@@ -0,0 +1,8 @@
using BeauFindlay.Shared.Abstractions;
using MediatR;
namespace BeauFindlay.Api.Abstractions.Messaging;
public interface IQuery<TResponse> : IRequest<Result<TResponse>>
{
}

View File

@@ -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>
{
}