File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
src/BootstrapBlazor/Components/ErrorLogger Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ public class ErrorLogger : ComponentBase, IErrorLogger
1818 [ NotNull ]
1919 private IStringLocalizer < ErrorLogger > ? Localizer { get ; set ; }
2020
21- [ Inject ]
22- [ NotNull ]
23- private ILogger < ErrorLogger > ? Logger { get ; set ; }
24-
2521 /// <summary>
2622 /// <inheritdoc/>
2723 /// </summary>
@@ -105,17 +101,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)
105101 /// </summary>
106102 /// <param name="exception"></param>
107103 /// <returns></returns>
108- public async Task HandlerExceptionAsync ( Exception exception )
109- {
110- if ( OnErrorHandleAsync != null )
111- {
112- await OnErrorHandleAsync ( Logger , exception ) ;
113- }
114- else
115- {
116- await _errorBoundary . RenderException ( exception , _cache . LastOrDefault ( ) ) ;
117- }
118- }
104+ public Task HandlerExceptionAsync ( Exception exception ) => _errorBoundary . RenderException ( exception , _cache . LastOrDefault ( ) ) ;
119105
120106 private readonly List < IHandlerException > _cache = [ ] ;
121107
You can’t perform that action at this time.
0 commit comments