Sumapap.Queries.Execution
1.4.2
dotnet add package Sumapap.Queries.Execution --version 1.4.2
NuGet\Install-Package Sumapap.Queries.Execution -Version 1.4.2
<PackageReference Include="Sumapap.Queries.Execution" Version="1.4.2" />
<PackageVersion Include="Sumapap.Queries.Execution" Version="1.4.2" />
<PackageReference Include="Sumapap.Queries.Execution" />
paket add Sumapap.Queries.Execution --version 1.4.2
#r "nuget: Sumapap.Queries.Execution, 1.4.2"
#:package Sumapap.Queries.Execution@1.4.2
#addin nuget:?package=Sumapap.Queries.Execution&version=1.4.2
#tool nuget:?package=Sumapap.Queries.Execution&version=1.4.2
Sumapap.Reporting
Overview
A lightweight, extensible error and exception reporting pipeline for .NET applications.
Sumapap.Reporting captures runtime errors and forwards them to configurable reporting targets (called sinks), such as logging systems, UI dialogs, databases, or external services.
✨ Why Sumapap.Reporting?
Most applications handle errors in scattered places:
- some log to files
- some show dialogs
- some swallow exceptions
- some crash the app
Sumapap.Reporting centralizes this responsibility into a single reporting pipeline.
You decide:
- what to report
- where it goes
- how much detail is included
🎯 Design Goals
- Cross-platform (MAUI, Web, Console, Worker)
- No UI or platform dependencies in the core
- Pluggable output destinations (sinks)
- Async-friendly and safe
- Clear separation of concerns
🚦 Reporting Modes
Reporting behavior is controlled via ReportingMode flags:
[Flags]
public enum ReportingMode : uint
{
None = 0,
/// <summary>
/// Suppresses all user-facing reporting.
/// Sinks may still process the report (e.g. logging).
/// </summary>
Silent = 1 << 0,
/// <summary>
/// Include full exception stack trace in the report.
/// </summary>
IncludeStackTrace = 1 << 1,
/// <summary>
/// Indicates the report originates from a background process.
/// UI sinks should ignore this.
/// </summary>
Background = 1 << 2,
/// <summary>
/// Indicates the error is user-actionable and may require attention.
/// UI sinks may emphasize this.
/// </summary>
UserActionRequired = 1 << 3,
/// <summary>
/// Default reporting behavior.
/// </summary>
Default = IncludeStackTrace
}
🔧 Basic Usage
// inject to container
builder.Services.AddSumapapReporting()
.AddLogReporting() // report as logging
.AddDialogReporting(); // report as dialog
// use somewhere in your code
try
{
// application code
}
catch (Exception ex)
{
await reportingService.ReportAsync(ex);
}
Contributions
Contributions are welcome! If you encounter a bug, have a suggestion, or want to contribute code, please follow these steps:
- Check the GitHub Issues to see if your issue or idea has already been reported.
- If not, open a new issue to describe the bug or feature request.
- For code contributions:
- Fork the Project repository.
- Create your Feature Branch (
git checkout -b feature/YourAmazingFeature). - Commit your Changes (
git commit -m 'Add YourAmazingFeature'). Adhere to conventional commit messages if possible. - Push to the Branch (
git push origin feature/YourAmazingFeature). - Open a Pull Request against the
mainbranch of the original repository.
- Please try to follow the existing coding style and include unit tests for new or modified functionality.
License
Distributed under the MIT License. See the LICENSE file in the repository for more information.
Contact
Project link: https://github.com/muhirwanto-dev/sumapap/tree/main/source/Sumapap.Reporting
| Product | Versions 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. |
-
net10.0
- Sumapap.Queries (>= 1.3.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sumapap.Queries.Execution:
| Package | Downloads |
|---|---|
|
Sumapap.Queries.Execution.EfCore
EntityFrameworkCore implementation for building Query. |
GitHub repositories
This package is not used by any popular GitHub repositories.