Sparkdo.ExceptionHandling 2.0.0-preview.2

This is a prerelease version of Sparkdo.ExceptionHandling.
dotnet add package Sparkdo.ExceptionHandling --version 2.0.0-preview.2
                    
NuGet\Install-Package Sparkdo.ExceptionHandling -Version 2.0.0-preview.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="Sparkdo.ExceptionHandling" Version="2.0.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sparkdo.ExceptionHandling" Version="2.0.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Sparkdo.ExceptionHandling" />
                    
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 Sparkdo.ExceptionHandling --version 2.0.0-preview.2
                    
#r "nuget: Sparkdo.ExceptionHandling, 2.0.0-preview.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 Sparkdo.ExceptionHandling@2.0.0-preview.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=Sparkdo.ExceptionHandling&version=2.0.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Sparkdo.ExceptionHandling&version=2.0.0-preview.2&prerelease
                    
Install as a Cake Tool

Sparkdo.ExceptionHandling

Sparkdo V 的包默认异常处理能力。安装包后,异步调用自动进入异常观察边界;无需调用手工 Add* 方法。

扩展点全部通过应用 Manifest 的 DI 注册组合:

  • IExceptionMetadataProvider:为自定义异常提供分类、错误码、日志级别和公开策略。
  • IExceptionObserver:接入告警、审计、遥测或外部通知。
  • IExceptionProblemContributor:补充传输无关的问题投影,例如验证错误列表。

领域项目可选安装 Sparkdo.ExceptionHandling.Domain。该扩展通过 Manifest 自动注册 DomainExceptionMetadataProvider,把 Sparkdo.Domain.Shared.DomainException 映射为安全的业务异常元数据;核心领域包不会反向依赖 ExceptionHandling。

使用 ExceptionHandlingDisabledAttribute 可按类型或方法排除默认调用边界;也可通过 capability 配置整体禁用。

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 (5)

Showing the top 5 NuGet packages that depend on Sparkdo.ExceptionHandling:

Package Downloads
Sparkdo.Ddd.Domain

Sparkdo DDD 领域模型库,提供领域驱动设计的核心组件实现

Sparkdo.AspNetCore

Sparkdo ASP.NET Core 集成库,提供与 ASP.NET Core 框架深度集成的功能实现

Sparkdo.UI

library for the Sparkdo framework

Sparkdo.ExceptionHandling.Mediation

Sparkdo Mediation 的异常分发中间件与 Manifest 自动接线。

Sparkdo.ExceptionHandling.Domain

Sparkdo DomainException 到 ExceptionHandling 的可选元数据适配。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-preview.2 50 7/20/2026
1.0.4-preview.3 191 6/8/2026
1.0.4-preview.2 194 6/7/2026
1.0.4-preview.1 181 6/7/2026
1.0.3 435 6/6/2026
1.0.3-preview.1 198 5/17/2026
1.0.2 347 4/27/2026
1.0.2-preview.5 101 4/15/2026
1.0.2-preview.4 113 2/8/2026
1.0.2-preview.3 108 2/1/2026
1.0.2-preview.2 132 1/31/2026
1.0.2-preview.1 213 12/4/2025
1.0.1 924 11/27/2025
1.0.0 884 11/25/2025
1.0.0-preview.5 146 10/24/2025