Exprivia.AsteStg.ErrorReporting.Core 1.0.3

dotnet add package Exprivia.AsteStg.ErrorReporting.Core --version 1.0.3
                    
NuGet\Install-Package Exprivia.AsteStg.ErrorReporting.Core -Version 1.0.3
                    
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.Core" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Exprivia.AsteStg.ErrorReporting.Core" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Exprivia.AsteStg.ErrorReporting.Core" />
                    
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.Core --version 1.0.3
                    
#r "nuget: Exprivia.AsteStg.ErrorReporting.Core, 1.0.3"
                    
#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.Core@1.0.3
                    
#: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.Core&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Exprivia.AsteStg.ErrorReporting.Core&version=1.0.3
                    
Install as a Cake Tool

Exprivia.AsteStg.ErrorReporting.Core

Astrazioni condivise per la segnalazione centralizzata degli errori nell'ecosistema AsteSTG, senza alcuna dipendenza da Blazor: può essere usata sia da applicazioni Blazor sia da Web API/servizi backend.

Contenuto del pacchetto

  • IErrorReporter — contratto per l'invio di una segnalazione di errore.
  • ErrorReport — record immutabile con i dati della segnalazione (ID, DATA_ORA, IP_MACCHINA, PROCESSO, ASSEMBLY, METODO, MESSAGGIO).
  • ErrorReportBuilder — helper statico che costruisce un ErrorReport a partire da un'Exception, risolvendo automaticamente IP macchina, processo corrente e stack trace.

Installazione

dotnet add package Exprivia.AsteStg.ErrorReporting.Core

Utilizzo

Implementare IErrorReporter con la logica di invio desiderata (log su DB, chiamata a un servizio, ecc.) e registrarlo nel container DI dell'applicazione ospitante:

public sealed class MyErrorReporter : IErrorReporter
{
    public async Task ReportAsync(Exception exception, string? context = null, CancellationToken ct = default)
    {
        var report = ErrorReportBuilder.Build(exception, context);
        // persistere / inviare 'report'
    }
}
builder.Services.AddScoped<IErrorReporter, MyErrorReporter>();

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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Exprivia.AsteStg.ErrorReporting.Core:

Package Downloads
Exprivia.AsteStg.ErrorReporting.Blazor

Componente GlobalErrorBoundary pronto all'uso per app Blazor: intercetta automaticamente le eccezioni non gestite dei componenti figli, le inoltra a un IErrorReporter (da Exprivia.AsteStg.ErrorReporting.Core) registrato dall'app ospitante, mostra una notifica MudBlazor all'utente e ripristina il componente senza bloccare l'interfaccia. Come si usa: 1. Registra MudBlazor (services.AddMudServices()) e un'implementazione di IErrorReporter nel DI dell'app ospitante. 2. Aggiungi MudSnackbarProvider nel layout principale. 3. Racchiudi il Router (o la sezione da proteggere) nel componente: <GlobalErrorBoundary><Router ... /></GlobalErrorBoundary>. Richiede i pacchetti Exprivia.AsteStg.ErrorReporting.Core e MudBlazor.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.3 124 8/24/2026
1.0.2 118 8/3/2026
1.0.1 120 7/31/2026
1.0.0 113 7/31/2026