Skip to content

Commit 41d4b08

Browse files
author
kadir.avci
committed
Adding CQRS pattern
1 parent 95d8458 commit 41d4b08

File tree

17 files changed

+106
-99
lines changed

17 files changed

+106
-99
lines changed

Diff for: .vs/VueJsTutorial/DesignTimeBuild/.dtbcache

217 KB
Binary file not shown.

Diff for: .vs/VueJsTutorial/v16/Server/sqlite3/storage.ide

0 Bytes
Binary file not shown.

Diff for: .vs/VueJsTutorial/v16/Server/sqlite3/storage.ide-shm

0 Bytes
Binary file not shown.

Diff for: .vs/VueJsTutorial/v16/Server/sqlite3/storage.ide-wal

1.37 MB
Binary file not shown.

Diff for: Data/Command/ICommand.cs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace Data.Command
2+
{
3+
public interface ICommand
4+
{
5+
}
6+
}

Diff for: Data/Command/ICommandDispatcher.cs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Data.Command
2+
{
3+
public interface ICommandDispatcher
4+
{
5+
void Execute<TCommand>(TCommand command) where TCommand : ICommand;
6+
}
7+
}

Diff for: Data/Command/ICommandHandler.cs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Data.Command
2+
{
3+
public interface ICommandHandler<TCommand> where TCommand : ICommand
4+
{
5+
void Execute(TCommand command);
6+
}
7+
}

Diff for: Data/Query/IQuery.cs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace Data.Query
2+
{
3+
public interface IQuery
4+
{
5+
}
6+
}

Diff for: Data/Query/IQueryDispatcher.cs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Data.Query
2+
{
3+
public interface IQueryDispatcher<TResult> where TResult : IQuery
4+
{
5+
TResult Execute<TQuery>(TQuery query) where TQuery : IQuery;
6+
}
7+
}

Diff for: Data/Query/IQueryHandler.cs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Data.Query
2+
{
3+
//public interface IQueryHandler where TQuery : IQuery
4+
//{
5+
// TResult Execute(TQuery query);
6+
//}
7+
}

Diff for: Services/bin/Debug/netcoreapp3.0/Services.deps.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"runtimeTarget": {
3+
"name": ".NETCoreApp,Version=v3.0",
4+
"signature": ""
5+
},
6+
"compilationOptions": {},
7+
"targets": {
8+
".NETCoreApp,Version=v3.0": {
9+
"Services/1.0.0": {
10+
"runtime": {
11+
"Services.dll": {}
12+
}
13+
}
14+
}
15+
},
16+
"libraries": {
17+
"Services/1.0.0": {
18+
"type": "project",
19+
"serviceable": false,
20+
"sha512": ""
21+
}
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
D:\Development\Tutorials\VueJsTutorial\Services\bin\Debug\netcoreapp3.0\Services.deps.json
2+
D:\Development\Tutorials\VueJsTutorial\Services\bin\Debug\netcoreapp3.0\Services.dll
3+
D:\Development\Tutorials\VueJsTutorial\Services\bin\Debug\netcoreapp3.0\Services.pdb
4+
D:\Development\Tutorials\VueJsTutorial\Services\obj\Debug\netcoreapp3.0\Services.csprojAssemblyReference.cache
5+
D:\Development\Tutorials\VueJsTutorial\Services\obj\Debug\netcoreapp3.0\Services.AssemblyInfoInputs.cache
6+
D:\Development\Tutorials\VueJsTutorial\Services\obj\Debug\netcoreapp3.0\Services.AssemblyInfo.cs
7+
D:\Development\Tutorials\VueJsTutorial\Services\obj\Debug\netcoreapp3.0\Services.dll
8+
D:\Development\Tutorials\VueJsTutorial\Services\obj\Debug\netcoreapp3.0\Services.pdb

Diff for: VueJsTutorial/Views/Shared/_Layout.cshtml

-2
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@
5454
</environment>
5555
<script src="~/release/library-bundle.js" asp-append-version="true"></script>
5656
<script src="~/release/vue-bundle.js" asp-append-version="true"></script>
57-
<script src="~/js/declarations.js" asp-append-version="true"></script>
5857
<script src="~/js/vuehelpers.js" asp-append-version="true"></script>
5958
<script src="~/js/toolbar.js" asp-append-version="true"></script>
6059
@RenderSection("Scripts", required: false)
6160
<script src="~/release/site.js" asp-append-version="true"></script>
62-
<script src="~/js/events.js" asp-append-version="true"></script>
6361
</body>
6462
</html>

Diff for: VueJsTutorial/bin/Debug/netcoreapp2.2/BundleConfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@
4343
{
4444
"outputFileName": "wwwroot/release/site.js",
4545
"inputFiles": [
46+
"wwwroot/js/declarations.js",
4647
"wwwroot/js/prototypes.js",
4748
"wwwroot/js/helpers.js",
4849
"wwwroot/js/ajaxhelper.js",
4950
"wwwroot/js/localstorage.js",
5051
"wwwroot/js/toolbar.js",
5152
"wwwroot/js/site.js",
53+
"wwwroot/js/events.js",
5254
"wwwroot/js/heatmap.js"
5355
],
5456
"minify": {

Diff for: VueJsTutorial/obj/Debug/netcoreapp2.2/Razor/Views/Shared/_Layout.cshtml.g.cs

+32-88
Large diffs are not rendered by default.

Diff for: VueJsTutorial/wwwroot/js/heatmap.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
(function () {
22
this.Heatmap = function () {
3-
43
};
54

65
Heatmap.prototype.initialize = function () {
7-
86
};
9-
10-
11-
}());
7+
}());

Diff for: VueJsTutorial/wwwroot/release/site.js

-4
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,8 @@ function closeTableGridFilters(event) {
499499

500500
(function () {
501501
this.Heatmap = function () {
502-
503502
};
504503

505504
Heatmap.prototype.initialize = function () {
506-
507505
};
508-
509-
510506
}());

0 commit comments

Comments
 (0)