Exprivia.AsteStg.ErrorReporting.Blazor 1.0.2

dotnet add package Exprivia.AsteStg.ErrorReporting.Blazor --version 1.0.2
                    
NuGet\Install-Package Exprivia.AsteStg.ErrorReporting.Blazor -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Exprivia.AsteStg.ErrorReporting.Blazor" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Exprivia.AsteStg.ErrorReporting.Blazor" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Exprivia.AsteStg.ErrorReporting.Blazor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Exprivia.AsteStg.ErrorReporting.Blazor --version 1.0.2
                    
#r "nuget: Exprivia.AsteStg.ErrorReporting.Blazor, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Exprivia.AsteStg.ErrorReporting.Blazor@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Exprivia.AsteStg.ErrorReporting.Blazor&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Exprivia.AsteStg.ErrorReporting.Blazor&version=1.0.2
                    
Install as a Cake Tool

Exprivia.AsteStg.ErrorReporting.Blazor

Componente GlobalErrorBoundary per applicazioni Blazor: intercetta le eccezioni non gestite nell'albero dei componenti, le inoltra a un IErrorReporter (da Exprivia.AsteStg.ErrorReporting.Core) registrato dall'app ospitante, mostra una notifica MudBlazor all'utente e ripristina automaticamente il componente.

Installazione

dotnet add package Exprivia.AsteStg.ErrorReporting.Blazor

Il pacchetto richiede:

  • Exprivia.AsteStg.ErrorReporting.Core (referenziato automaticamente)
  • MudBlazor — per la notifica (ISnackbar)

Prerequisiti

Nell'app ospitante devono essere registrati:

builder.Services.AddMudServices();
builder.Services.AddScoped<IErrorReporter, MyErrorReporter>(); // implementazione da Exprivia.AsteStg.ErrorReporting.Core

e il MudSnackbarProvider deve essere presente nel layout principale.

Utilizzo

Racchiudere il contenuto dell'app (o di una sezione) nel componente GlobalErrorBoundary:

<GlobalErrorBoundary>
    <Router AppAssembly="@typeof(Program).Assembly">
        ...
    </Router>
</GlobalErrorBoundary>

Alla prima eccezione non gestita da un componente figlio, GlobalErrorBoundary:

  1. invia la segnalazione tramite IErrorReporter.ReportAsync;
  2. mostra uno snackbar di errore all'utente;
  3. ripristina automaticamente il boundary dopo un breve ritardo, evitando di bloccare l'interfaccia.

Target Framework

net10.0

Pacchetti correlati

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 111 8/24/2026
1.0.1 119 7/31/2026
1.0.0 110 7/31/2026