Class MessageFilterAttribute
- Namespace
- Silverback.Messaging.Subscribers
- Assembly
- Silverback.Core.dll
Can be placed on a subscribed method to filter the messages to be processed.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public abstract class MessageFilterAttribute : Attribute, IMessageFilter
- Inheritance
-
MessageFilterAttribute
- Implements
- Derived
- Inherited Members
Constructors
MessageFilterAttribute()
protected MessageFilterAttribute()
Methods
MustProcess(object)
Returns a boolean value indicating whether the specified message must be processed by the subscribed method decorated with this attribute.
public abstract bool MustProcess(object message)
Parameters
messageobjectThe message to be checked.
Returns
- bool
A boolean value indicating whether the message must be processed by the subscribed method.