Skip to content

Commit 382d6dd

Browse files
committed
Migrated from Decorators to Factory Extensions to enhance the Command and Query handlers for CRUD implementations.
1 parent 7f38d63 commit 382d6dd

14 files changed

+206
-365
lines changed

Modules/Intent.Modules.Application.MediatR.CRUD/CrudStrategies/StrategyFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Intent.Modules.Application.MediatR.CRUD.CrudStrategies;
1212

1313
internal static class StrategyFactory
1414
{
15-
public static ICrudImplementationStrategy GetMatchedCommandStrategy(CSharpTemplateBase<CommandModel> template)
15+
public static ICrudImplementationStrategy? GetMatchedCommandStrategy(CSharpTemplateBase<CommandModel> template)
1616
{
1717
var strategies = new ICrudImplementationStrategy[]
1818
{
@@ -38,7 +38,7 @@ public static ICrudImplementationStrategy GetMatchedCommandStrategy(CSharpTempla
3838
return null;
3939
}
4040

41-
public static ICrudImplementationStrategy GetMatchedQueryStrategy(CSharpTemplateBase<QueryModel> template, IApplication application)
41+
public static ICrudImplementationStrategy? GetMatchedQueryStrategy(CSharpTemplateBase<QueryModel> template, IApplication application)
4242
{
4343
var strategies = new ICrudImplementationStrategy[]
4444
{

Modules/Intent.Modules.Application.MediatR.CRUD/Decorators/CommandHandlerCrudDecorator.cs

Lines changed: 0 additions & 105 deletions
This file was deleted.

Modules/Intent.Modules.Application.MediatR.CRUD/Decorators/CommandHandlerCrudDecoratorRegistration.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

Modules/Intent.Modules.Application.MediatR.CRUD/Decorators/QueryHandlerCrudDecorator.cs

Lines changed: 0 additions & 98 deletions
This file was deleted.

Modules/Intent.Modules.Application.MediatR.CRUD/Decorators/QueryHandlerCrudDecoratorRegistration.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)