From 1e35f8da85e1f51770fbbc309cd297b3ae73eb08 Mon Sep 17 00:00:00 2001 From: omid ahmadpour Date: Sat, 10 Dec 2022 14:27:28 +0100 Subject: [PATCH] update to last version of MediatR. --- src/Common/Behaviours/PerformanceBehaviour.cs | 4 ++-- src/Common/Behaviours/UnhandledExceptionBehaviour.cs | 4 ++-- src/Common/Behaviours/ValidationBehaviour.cs | 2 +- src/Common/CleanTemplate.Common.csproj | 2 +- src/Core/Application/CleanTemplate.Application.csproj | 2 +- .../Persistance/CleanTemplate.Persistence.csproj | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Common/Behaviours/PerformanceBehaviour.cs b/src/Common/Behaviours/PerformanceBehaviour.cs index 5c7dd8d..b8acc88 100644 --- a/src/Common/Behaviours/PerformanceBehaviour.cs +++ b/src/Common/Behaviours/PerformanceBehaviour.cs @@ -5,7 +5,7 @@ using System.Diagnostics; using System.Threading; using System.Threading.Tasks; - public class PerformanceBehaviour : IPipelineBehavior + public class PerformanceBehaviour : IPipelineBehavior where TRequest : IRequest { private readonly Stopwatch _timer; private readonly ILogger _logger; @@ -17,7 +17,7 @@ public PerformanceBehaviour(ILogger logger) _logger = logger; } - public async Task Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate next) + public async Task Handle(TRequest request, RequestHandlerDelegate next, CancellationToken cancellationToken) { _timer.Start(); diff --git a/src/Common/Behaviours/UnhandledExceptionBehaviour.cs b/src/Common/Behaviours/UnhandledExceptionBehaviour.cs index 9e2903d..22573b5 100644 --- a/src/Common/Behaviours/UnhandledExceptionBehaviour.cs +++ b/src/Common/Behaviours/UnhandledExceptionBehaviour.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Microsoft.Extensions.Logging; - public class UnhandledExceptionBehaviour : IPipelineBehavior + public class UnhandledExceptionBehaviour : IPipelineBehavior where TRequest : IRequest { private readonly ILogger _logger; @@ -15,7 +15,7 @@ public UnhandledExceptionBehaviour(ILogger logger) _logger = logger; } - public async Task Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate next) + public async Task Handle(TRequest request, RequestHandlerDelegate next, CancellationToken cancellationToken) { try { diff --git a/src/Common/Behaviours/ValidationBehaviour.cs b/src/Common/Behaviours/ValidationBehaviour.cs index 4f3b752..92daf2b 100644 --- a/src/Common/Behaviours/ValidationBehaviour.cs +++ b/src/Common/Behaviours/ValidationBehaviour.cs @@ -17,7 +17,7 @@ public ValidationBehavior(IEnumerable> validators) _validators = validators; } - public async Task Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate next) + public async Task Handle(TRequest request, RequestHandlerDelegate next, CancellationToken cancellationToken) { if (_validators.Any()) { diff --git a/src/Common/CleanTemplate.Common.csproj b/src/Common/CleanTemplate.Common.csproj index 88c27e1..450383c 100644 --- a/src/Common/CleanTemplate.Common.csproj +++ b/src/Common/CleanTemplate.Common.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/Core/Application/CleanTemplate.Application.csproj b/src/Core/Application/CleanTemplate.Application.csproj index 22b230d..dd78f10 100644 --- a/src/Core/Application/CleanTemplate.Application.csproj +++ b/src/Core/Application/CleanTemplate.Application.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Infrastructure/Persistance/CleanTemplate.Persistence.csproj b/src/Infrastructure/Persistance/CleanTemplate.Persistence.csproj index 7c1c076..6b4aa79 100644 --- a/src/Infrastructure/Persistance/CleanTemplate.Persistence.csproj +++ b/src/Infrastructure/Persistance/CleanTemplate.Persistence.csproj @@ -5,8 +5,8 @@ - - + +