@using Logging.Net @using Moonlight.App.Services.LogServices @using Moonlight.App.Services.Sessions @inherits ErrorBoundary @inject ErrorLogService ErrorLogService @if (CurrentException is null) { @ChildContent } else if (ErrorContent is not null) {
Ooops. This component is crashed
This component is crashed. The error has been reported to the moonlight team
} else {
Ooops. This component is crashed
This component is crashed. The error has been reported to the moonlight team
} @code { List receivedExceptions = new(); protected override async Task OnErrorAsync(Exception exception) { receivedExceptions.Add(exception); await ErrorLogService.Log(exception, x => {}); await base.OnErrorAsync(exception); } public new void Recover() { receivedExceptions.Clear(); base.Recover(); } }