File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/BootstrapBlazor/Components/ErrorLogger Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -216,13 +216,13 @@ protected async Task OnErrorAsync(Exception exception)
216216 }
217217 }
218218
219- private readonly List < ComponentBase > _cache = [ ] ;
219+ private readonly List < IHandlerException > _cache = [ ] ;
220220
221221 /// <summary>
222222 /// <inheritdoc/>
223223 /// </summary>
224224 /// <param name="component"></param>
225- public void Register ( ComponentBase component )
225+ public void Register ( IHandlerException component )
226226 {
227227 _cache . Add ( component ) ;
228228 }
@@ -231,7 +231,7 @@ public void Register(ComponentBase component)
231231 /// <inheritdoc/>
232232 /// </summary>
233233 /// <param name="component"></param>
234- public void UnRegister ( ComponentBase component )
234+ public void UnRegister ( IHandlerException component )
235235 {
236236 _cache . Remove ( component ) ;
237237 }
Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ public interface IErrorLogger
3636 /// 注册方法
3737 /// </summary>
3838 /// <param name="component"></param>
39- void Register ( ComponentBase component ) ;
39+ void Register ( IHandlerException component ) ;
4040
4141 /// <summary>
4242 /// 注销方法
4343 /// </summary>
4444 /// <param name="component"></param>
45- void UnRegister ( ComponentBase component ) ;
45+ void UnRegister ( IHandlerException component ) ;
4646}
You can’t perform that action at this time.
0 commit comments