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" />
<PackageReference Include="Xeku.Triggers" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Xeku.Triggers&version=0.0.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 bothActionandValidator(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
- Navigate to Trigger Rule.
- Set Target Type and select events (Created, Modified, Deleted).
- Provide the Webhook URL and optional HTTP Headers.
- (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."
Related Modules
- Xeku.DataMirror - Mirrored data receiver.
License
MIT License
| Product | Versions 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.
-
net8.0
- DevExpress.ExpressApp (>= 25.2.3)
- DevExpress.ExpressApp.Security (>= 25.2.3)
- DevExpress.ExpressApp.Validation (>= 25.2.3)
- DevExpress.ExpressApp.Xpo (>= 25.2.3)
- DevExpress.Persistent.Base (>= 25.2.3)
- DevExpress.Persistent.BaseImpl.Xpo (>= 25.2.3)
- Microsoft.Data.SqlClient (>= 6.1.2)
- Xeku.Core (>= 0.0.0.7)
- Xeku.Scripts (>= 0.0.0.7)
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.