Rule​Action Class

Definition

Represents the filter actions which are allowed for the transformation of a message that have been matched by a filter expression.

[System.Runtime.Serialization.DataContract(Name="RuleAction", Namespace="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.EmptyRuleAction))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.SqlRuleAction))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.CompositeAction))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.RuleCreationAction))]
[System.Runtime.Serialization.KnownType(typeof(System.DateTimeOffset))]
public abstract class RuleAction : System.Runtime.Serialization.IExtensibleDataObject
Inheritance
RuleAction
Derived
Attributes
System.Runtime.Serialization.DataContract System.Runtime.Serialization.KnownType System.Runtime.Serialization.KnownType System.Runtime.Serialization.KnownType System.Runtime.Serialization.KnownType System.Runtime.Serialization.KnownType
Implements

Remarks

Filter actions allow for the transformation of a message that have been matched by a filter expression. The typical use case for filter acions is to append or update the properties that are attached to a message, for example assigning a group ID based on the correlation ID of a message.

Properties

Requires​Preprocessing

Gets a value that indicates whether the rule action requires preprocessing.

I​Extensible​Data​Object.​Extension​Data

Methods

Execute(​Brokered​Message)

Executes the filter action on the supplied BrokeredMessage.

Preprocess()

Preprocesses the RuleAction object.

Validate()

Validates the rule action against the grammar.