Class PoisonDetectionResult
- Namespace
- Excalibur.Dispatch.ErrorHandling
- Assembly
- Excalibur.Dispatch.dll
Result of poison message detection.
public sealed class PoisonDetectionResult
- Inheritance
-
PoisonDetectionResult
- Inherited Members
- Extension Methods
Properties
Details
Gets or sets additional details about the detection.
public Dictionary<string, object> Details { get; set; }
Property Value
- Dictionary<string, object>
The current Details value.
DetectorName
Gets or sets the detector that identified the message as poison.
public string? DetectorName { get; set; }
Property Value
- string
The current DetectorName value.
IsPoison
Gets or sets a value indicating whether the message is considered poison.
public bool IsPoison { get; set; }
Property Value
Reason
Gets or sets the reason why the message is considered poison.
public string? Reason { get; set; }
Property Value
Methods
NotPoison()
Creates a non-poison detection result.
public static PoisonDetectionResult NotPoison()
Returns
Poison(string, string, Dictionary<string, object>?)
Creates a poison detection result.
public static PoisonDetectionResult Poison(string reason, string detectorName, Dictionary<string, object>? details = null)
Parameters
reasonstringdetectorNamestringdetailsDictionary<string, object>