Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
HIAST-Clinics
Commits
4c0a6b16
Commit
4c0a6b16
authored
Aug 17, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(B) Add CQRS bases
parent
4382139b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
0 deletions
+54
-0
ICommand.cs
...ackend/Application/Abstractions/CQRS/Commands/ICommand.cs
+13
-0
ICommandHandler.cs
...Application/Abstractions/CQRS/Commands/ICommandHandler.cs
+16
-0
IQuery.cs
...s.Backend/Application/Abstractions/CQRS/Queries/IQuery.cs
+12
-0
IQueryHandler.cs
...nd/Application/Abstractions/CQRS/Queries/IQueryHandler.cs
+9
-0
Application.csproj
Clinics.Backend/Application/Application.csproj
+4
-0
No files found.
Clinics.Backend/Application/Abstractions/CQRS/Commands/ICommand.cs
0 → 100644
View file @
4c0a6b16
using
MediatR
;
namespace
Application.Abstractions.CQRS.Commands
;
// No response
public
interface
ICommand
:
IRequest
{
}
// With response
public
interface
ICommand
<
TResponse
>
:
IRequest
<
TResponse
>
{
}
Clinics.Backend/Application/Abstractions/CQRS/Commands/ICommandHandler.cs
0 → 100644
View file @
4c0a6b16
using
MediatR
;
namespace
Application.Abstractions.CQRS.Commands
;
// No response
public
interface
ICommandHandler
<
TCommand
>
:
IRequestHandler
<
TCommand
>
where
TCommand
:
ICommand
{
}
// With response
public
interface
ICommandHandler
<
TCommand
,
TResponse
>
:
IRequestHandler
<
TCommand
,
TResponse
>
where
TCommand
:
ICommand
<
TResponse
>
{
}
\ No newline at end of file
Clinics.Backend/Application/Abstractions/CQRS/Queries/IQuery.cs
0 → 100644
View file @
4c0a6b16
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Application.Abstractions.CQRS.Queries
{
internal
interface
Interface1
{
}
}
Clinics.Backend/Application/Abstractions/CQRS/Queries/IQueryHandler.cs
0 → 100644
View file @
4c0a6b16
using
MediatR
;
namespace
Application.Abstractions.CQRS.Queries
;
public
interface
IQueryHandler
<
TQuery
,
TResponse
>
:
IRequestHandler
<
TQuery
,
TResponse
>
where
TQuery
:
IQuery
<
TResponse
>
{
}
Clinics.Backend/Application/Application.csproj
View file @
4c0a6b16
...
@@ -6,6 +6,10 @@
...
@@ -6,6 +6,10 @@
<Nullable>enable</Nullable>
<Nullable>enable</Nullable>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MediatR" Version="12.4.0" />
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Domain\Domain.csproj" />
<ProjectReference Include="..\Domain\Domain.csproj" />
</ItemGroup>
</ItemGroup>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment