From 085f663611f5d3e50570a55c7e183e759bde225a Mon Sep 17 00:00:00 2001 From: ysmoradi Date: Fri, 29 Mar 2024 05:40:30 +0100 Subject: [PATCH] fix --- .../Boilerplate.Client.Core/Services/ExceptionHandlerBase.cs | 4 ++-- .../Boilerplate.Client.Maui/Services/MauiExceptionHandler.cs | 4 ++-- .../Boilerplate.Client.Web/Services/WebExceptionHandler.cs | 4 ++-- .../Services/WindowsExceptionHandler.cs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/ExceptionHandlerBase.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/ExceptionHandlerBase.cs index aa0e64d2aa..1074031b5d 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/ExceptionHandlerBase.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/ExceptionHandlerBase.cs @@ -21,10 +21,10 @@ public void Handle(Exception exp, IDictionary? parameters = nul parameters ??= new Dictionary(); - LogError(exp, parameters); + Handle(exp, parameters.ToDictionary(i => i.Key, i => i.Value ?? string.Empty)); } - protected virtual void LogError(Exception exception, IDictionary parameters) + protected virtual void Handle(Exception exception, Dictionary parameters) { var isDebug = BuildConfiguration.IsDebug(); diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Services/MauiExceptionHandler.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Services/MauiExceptionHandler.cs index 64bbb2e680..489975fb22 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Services/MauiExceptionHandler.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Services/MauiExceptionHandler.cs @@ -7,8 +7,8 @@ namespace Boilerplate.Client.Maui.Services; /// public partial class MauiExceptionHandler : ExceptionHandlerBase { - protected override void LogError(Exception exception, IDictionary parameters) + protected override void Handle(Exception exception, Dictionary parameters) { - base.LogError(exception, parameters); + base.Handle(exception, parameters); } } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/Services/WebExceptionHandler.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/Services/WebExceptionHandler.cs index 336b923152..d0af5c139c 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/Services/WebExceptionHandler.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/Services/WebExceptionHandler.cs @@ -2,8 +2,8 @@ public partial class WebExceptionHandler : ExceptionHandlerBase { - protected override void LogError(Exception exception, IDictionary parameters) + protected override void Handle(Exception exception, Dictionary parameters) { - base.LogError(exception, parameters); + base.Handle(exception, parameters); } } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Windows/Services/WindowsExceptionHandler.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Windows/Services/WindowsExceptionHandler.cs index e00649ff20..db9db1f8e8 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Windows/Services/WindowsExceptionHandler.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Windows/Services/WindowsExceptionHandler.cs @@ -4,8 +4,8 @@ namespace Boilerplate.Client.Windows.Services; public partial class WindowsExceptionHandler : ExceptionHandlerBase { - protected override void LogError(Exception exception, IDictionary parameters) + protected override void Handle(Exception exception, Dictionary parameters) { - base.LogError(exception, parameters); + base.Handle(exception, parameters); } }