Xeku.Triggers 0.0.0.7

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

Xeku.Triggers

A DevExpress XAF module that provides object change detection and webhook triggering capabilities.

繁體中文文檔

Features

  • Trigger Rules: Define rules to monitor specific object types and CRUD events.
  • Webhook Delivery: Automatically send JSON payloads to remote endpoints.
  • Script Actions: Execute internal C# scripts (via Xeku.Scripts) as an alternative to webhooks. Support for both Action and Validator (judgment-based) modes.
  • Criteria Filtering: Use XAF criteria string to filter when triggers fire.
  • Execution Logging: Detailed logs for every trigger event (Webhook or Script) with retry options.
  • Admin Tools: Built-in actions to test triggers and clean up old logs.

Architecture

graph TD
    User[User / System] --> DB[Database Change]
    DB --> Hook[ObjectSpace Events]
    Hook --> Engine[Trigger Engine]
    Engine --> Rule{Rule Matches?}
    Rule -- Yes --> ActionType{Action Type?}
    
    ActionType -- Webhook --> HTTP[HttpClient / External API]
    ActionType -- Script --> ScriptEngine[Xeku.Scripts Engine]
    
    HTTP --> Log[Trigger Execution Log]
    ScriptEngine --> Log
    
    Rule -- No --> End[Skip]

Installation

1. NuGet Package

dotnet add package Xeku.Triggers

Configuration

Core Module

Register the module in your platform-agnostic module:

public sealed class MyModule : ModuleBase {
    public MyModule() {
        RequiredModuleTypes.Add(typeof(Xeku.Triggers.TriggersModule));
    }
}

Blazor Integration

The Blazor module enables script code editing with the Monaco editor.

// Startup.cs ConfigureServices
services.AddTriggers(); // Includes Scripts.Blazor

// ApplicationBuilder
builder.Modules.Add<Xeku.Triggers.Blazor.TriggersBlazorModule>();

Features

Script Actions (v2.0)

Triggers can now execute dynamic C# scripts instead of webhooks. Scripts support:

  • Action: Fire-and-forget logic (e.g., background processing).
  • Validator: Synchronous logic that can block/log failures.
  • Transformer: Data conversion before processing.

Usage

Creating a Trigger Rule

  1. Navigate to Trigger Rule.
  2. Set Target Type and select events (Created, Modified, Deleted).
  3. Provide the Webhook URL and optional HTTP Headers.
  4. (Optional) Set Criteria to refine trigger conditions.

AI Agent Integration

Suggested Context

  • Performance: Webhooks are sent asynchronously; however, avoid heavy logic in trigger evaluation.
  • Security: Always use HTTPS for webhook URLs.

Common Tasks

  • "Create a trigger to notify Slack when a new high-priority Task is created."
  • "Show me all failed webhook deliveries from the last hour."

License

MIT License

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (2)

Showing the top 2 NuGet packages that depend on Xeku.Triggers:

Package Downloads
Xeku.Triggers.WebApi

Web API integration for Xeku.Triggers module.

Xeku.Triggers.Blazor

Blazor integration module for Xeku.Triggers with DI extensions.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.0.7 156 1/28/2026
0.0.0.6 112 1/21/2026
0.0.0.5 112 1/15/2026
0.0.0.4 114 1/13/2026
0.0.0.3 115 1/9/2026
0.0.0.2 124 1/8/2026