< Summary

Information
Class: Intentum.Events.WebhookConfig
Assembly: Intentum.Events
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.Events/IntentumEventsOptions.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 35
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

/home/runner/work/Intentum/Intentum/src/Intentum.Events/IntentumEventsOptions.cs

#LineLine coverage
 1namespace Intentum.Events;
 2
 3/// <summary>
 4/// Options for Intentum events (webhooks, retry).
 5/// </summary>
 6public sealed class IntentumEventsOptions
 7{
 8    internal const string HttpClientName = "Intentum.Events.Webhook";
 9
 10    /// <summary>
 11    /// Configured webhooks (URL + event types to send).
 12    /// </summary>
 13    public List<WebhookConfig> Webhooks { get; } = [];
 14
 15    /// <summary>
 16    /// Number of retries for failed HTTP POST (default 3).
 17    /// </summary>
 18    public int RetryCount { get; set; } = 3;
 19}
 20
 21/// <summary>
 22/// Configuration for a single webhook endpoint.
 23/// </summary>
 24public sealed class WebhookConfig
 25{
 26    /// <summary>
 27    /// Webhook URL (HTTP POST).
 28    /// </summary>
 2329    public string Url { get; set; } = "";
 30
 31    /// <summary>
 32    /// Event types to send (e.g. "IntentInferred", "PolicyDecisionChanged").
 33    /// </summary>
 2834    public HashSet<string> EventTypes { get; set; } = new(StringComparer.OrdinalIgnoreCase);
 35}

Methods/Properties

Url()
EventTypes()