diff --git a/src/ReC.Application/Common/Behaviors/BodyQueryBehavior.cs b/src/ReC.Application/Common/Behaviors/BodyQueryBehavior.cs new file mode 100644 index 0000000..a404a43 --- /dev/null +++ b/src/ReC.Application/Common/Behaviors/BodyQueryBehavior.cs @@ -0,0 +1,14 @@ +using MediatR; +using ReC.Application.Common.Dto; + +namespace ReC.Application.Common.Behaviors; + +public class BodyQueryBehavior : IPipelineBehavior + where TRecAction : RecActionDto +{ + public Task Handle(TRecAction action, RequestHandlerDelegate next, CancellationToken cancel) + { + // Logic to process the body query can be added here + throw new NotImplementedException("BodyQueryBehavior is not implemented yet."); + } +} diff --git a/src/ReC.Application/Common/Behaviors/HeaderQueryBehavior.cs b/src/ReC.Application/Common/Behaviors/HeaderQueryBehavior.cs new file mode 100644 index 0000000..9199da0 --- /dev/null +++ b/src/ReC.Application/Common/Behaviors/HeaderQueryBehavior.cs @@ -0,0 +1,14 @@ +using MediatR; +using ReC.Application.Common.Dto; + +namespace ReC.Application.Common.Behaviors; + +public class HeaderQueryBehavior : IPipelineBehavior + where TRecAction : RecActionDto +{ + public Task Handle(TRecAction action, RequestHandlerDelegate next, CancellationToken cancel) + { + // Logic to process the header query can be added here + throw new NotImplementedException("HeaderQueryBehavior is not implemented yet."); + } +} diff --git a/src/ReC.Application/DependencyInjection.cs b/src/ReC.Application/DependencyInjection.cs index 2f0c891..dac7b8c 100644 --- a/src/ReC.Application/DependencyInjection.cs +++ b/src/ReC.Application/DependencyInjection.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; +using ReC.Application.Common.Behaviors; using ReC.Application.Common.Options; -using ReC.Application.RecActions.Behaviors; using System.Reflection; namespace ReC.Application; diff --git a/src/ReC.Application/RecActions/Behaviors/BodyQueryBehavior.cs b/src/ReC.Application/RecActions/Behaviors/BodyQueryBehavior.cs deleted file mode 100644 index c74beba..0000000 --- a/src/ReC.Application/RecActions/Behaviors/BodyQueryBehavior.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MediatR; -using ReC.Application.Common.Dto; - -namespace ReC.Application.RecActions.Behaviors -{ - public class BodyQueryBehavior : IPipelineBehavior - where TRecAction : RecActionDto - { - public Task Handle(TRecAction action, RequestHandlerDelegate next, CancellationToken cancel) - { - // Logic to process the body query can be added here - throw new NotImplementedException("BodyQueryBehavior is not implemented yet."); - } - } -} diff --git a/src/ReC.Application/RecActions/Behaviors/HeaderQueryBehavior.cs b/src/ReC.Application/RecActions/Behaviors/HeaderQueryBehavior.cs deleted file mode 100644 index e95a2e7..0000000 --- a/src/ReC.Application/RecActions/Behaviors/HeaderQueryBehavior.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MediatR; -using ReC.Application.Common.Dto; - -namespace ReC.Application.RecActions.Behaviors -{ - public class HeaderQueryBehavior : IPipelineBehavior - where TRecAction : RecActionDto - { - public Task Handle(TRecAction action, RequestHandlerDelegate next, CancellationToken cancel) - { - // Logic to process the header query can be added here - throw new NotImplementedException("HeaderQueryBehavior is not implemented yet."); - } - } -}