SangamLink 1.0.0

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

ExceptionMaster.Alerting.Notifier

Desktop UI notification destination adapter for ExceptionMaster.Alerting powered by the Notifier Windows Forms notification engine.

This package provides NotifierAlertDestination and fluent registration extensions, allowing ExceptionMaster.Alerting to route alert envelopes to modern, non-intrusive Windows desktop toasts and notification center feeds.

Architecture & Responsibilities

ExceptionMaster
      ↓
ExceptionMaster.Alerting.Core (Headless Policy & Routing Engine)
      ↓ (AlertEnvelope)
ExceptionMaster.Alerting.Notifier (Thin Destination Adapter)
      ↓ (AdvancedNotificationOptions)
Notifier (Host-Managed Desktop UI Engine)
  • Core Remains Headless: ExceptionMaster.Alerting.Core has zero Windows Forms or desktop dependencies. This package bridges the two worlds cleanly.
  • Thin Adapter Design: ExceptionMaster.Alerting.Notifier contains zero background worker loops, internal queues, retry engines, suppression logic, or UI timers.
  • Host-Owned Notifier Lifecycle: The host application initializes and manages Notifier's lifecycle. Alerting.Notifier simply adapts and submits alerts to the already-running Notifier engine.

Target Frameworks

  • .NET Framework 4.8 (net48)
  • .NET 8.0 Windows (net8.0-windows)

Installation

dotnet add package ExceptionMaster.Alerting.Notifier --version 1.0.0

Basic Usage

using System;
using ExceptionMaster.Alerting;
using ExceptionMaster.Alerting.Enums;
using SangamLink;
using ExceptionMaster.Alerting.Rules;
using Notifier;

// 1. Initialize Notifier in the Windows Forms host application
global::SanketDesk.SanketDeskNotifier.Initialize(new NotificationConfig
{
    MaxVisibleNotifications = 3,
    DefaultDisplayDuration = TimeSpan.FromSeconds(5)
});

// 2. Initialize ExceptionMaster.Alerting with the Notifier destination adapter
Alerting.Initialize(builder =>
{
    // Register Notifier destination adapter
    builder.AddNotifierDestination("DesktopNotifier", options =>
    {
        // Alerting.Core owns suppression & occurrence counts; grouping defaults to false
        options.EnableNotifierGrouping = false;
        options.DisplayDuration = TimeSpan.FromSeconds(5);
    });

    // Route critical and error alerts to the desktop
    builder.AddRule(new AlertRule(
        ruleId: "desktop-alerts",
        name: "Desktop Notifications",
        condition: RuleCondition.Severity(PredicateOperator.GreaterThanOrEqual, AlertSeverity.Error),
        order: 1,
        targetDestinations: new[] { "DesktopNotifier" }));
});

Security Model

  • AlertEnvelope Security Boundary: Raw System.Exception instances never cross into the Notifier adapter. Payloads contain only sanitized summaries, keys, and metadata.
  • Safe AlertActionToken: Diagnostic action tokens carry opaque identifiers. No executable code or delegates are passed into Notifier.
  • Host-Owned Diagnostic UI: If a notification action button is clicked, handling of the opaque token remains under the host application's explicit control.

Delivery Semantics

IMPORTANT: Successful destination delivery means successful admission into the destination engine.

When DeliverAsync succeeds, it indicates that Notifier accepted the notification into its internal admission controller. It does NOT guarantee that a user physically viewed, clicked, or acknowledged the desktop toast.

Limitations

  • Windows Platform Only: Requires Windows Forms desktop runtime (net48 or net8.0-windows). Not supported in Linux/macOS headless environments.
  • Host Initialization Required: global::SanketDesk.SanketDeskNotifier.Initialize(...) must be called by the host before alerts are routed; otherwise, Notifier defaults or uninitialized state will reject or misroute admissions.

License

MIT License. Copyright (c) 2026 ExceptionMaster Contributors.

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. 
.NET Framework net48 is compatible.  net481 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.0 96 11/3/2026

Initial stable v1.0.0 release of SangamLink — Resilient exception-to-notification integration bridge connecting AvaranFlow alerting pipelines to SanketDesk desktop toasts.