Table of Contents

Interface IPoisonDetectionRule

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

Interface for custom poison detection rules.

public interface IPoisonDetectionRule
Extension Methods

Properties

Name

Gets the name of the rule.

string Name { get; }

Property Value

string

The unique identifier of the poison detection rule.

Methods

GetConfidence(object, Exception, object)

Gets the confidence level of the detection (0-1).

double GetConfidence(object message, Exception exception, object history)

Parameters

message object

The message to check.

exception Exception

The exception that occurred, if any.

history object

The message failure history.

Returns

double

The confidence level between 0 and 1.

IsPoison(object, Exception, object)

Determines if a message is poison based on this rule.

bool IsPoison(object message, Exception exception, object history)

Parameters

message object

The message to check.

exception Exception

The exception that occurred, if any.

history object

The message failure history.

Returns

bool

True if the message is poison; otherwise, false.