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