Class RuleAction
- Namespace
- Microsoft.ServiceBus.Messaging
- Assembly
- Microsoft.ServiceBus.dll
Represents the filter actions which are allowed for the transformation of a message that have been matched by a filter expression.
[KnownType(typeof(RuleCreationAction))]
[KnownType(typeof(DateTimeOffset))]
[KnownType(typeof(CompositeAction))]
[DataContract(Name = "RuleAction", Namespace = "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")]
[KnownType(typeof(EmptyRuleAction))]
[KnownType(typeof(SqlRuleAction))]
public abstract class RuleAction : IExtensibleDataObject
- Inheritance
-
RuleAction
- Implements
-
IExtensibleDataObject
- Derived
- Inherited Members
Properties
RequiresPreprocessing
Gets a value that indicates whether the rule action requires preprocessing.
public abstract bool RequiresPreprocessing { get; }
Property Value
- bool
true if the rule action requires preprocessing; otherwise, false.
Methods
Execute(BrokeredMessage)
Executes the filter action on the supplied BrokeredMessage.
public abstract BrokeredMessage Execute(BrokeredMessage message)
Parameters
message
BrokeredMessageInput BrokeredMessage.
Returns
- BrokeredMessage
The modified BrokeredMessage after executing the rule action.
Preprocess()
Preprocesses the RuleAction object.
public abstract RuleAction Preprocess()
Returns
- RuleAction
The preprocessed RuleAction object.
Validate()
Validates the rule action against the grammar.
public abstract void Validate()