PsdFramework.ModularWpf.ExceptionHandling 1.0.1

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

PsdFramework.ModularWpf.ExceptionHandling

Exception handling extensions for the PsdFramework.ModularWpf

How to configure?

First, your App.xaml.cs must implement IApplicationModule in order to use extensions methods.
public sealed partial class App : System.Windows.Application, IModularApplication
{
    public IServiceProvider? ServiceProvider { get; private set; }

    protected override void OnStartup(StartupEventArgs e)
    {
        base.OnStartup(e);
        this.AddGlobalExceptionHandler(); // Adding handler of dispatcher unhanhdled exceptions

        var services = new ServiceProvider();

        services.AddExceptionHandlersController(); // controller of exception handlers
        services.AddExceptionHandler<GlobalExceptionHandler>(); // adding global exception handler
        // add more handlers if needed
    }
}
Handling pipeline: ExceptionDispatcherUnhandledExceptionExceptionHandlersControllerSpecific Exception Handler or Global Handler
Unhandled → rethrow exception without handling it.
Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows 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.1 280 11/13/2025
1.0.0 196 9/11/2025