Given the following event, is there a way to subscribe to events that have a specific property value? For example, only subscribe to events with an OperationTypeId=3.
public interface IServerEvent : IEvent
{
int OperationTypeId { get; set; }
string SomeValue { get; set; }
}
I am using NServiceBus 6.0.0.
The use case for this is that new OperationType's can be created on the Server so we need a "generic" event structure. I'd like the ability for Subscribers to only receive events for the OperationType's they are interested in and not require the publisher to send all events to all subscribers and make the subscriber filter.
I am hoping the publish side of NServiceBus can handle the filter to reduce the number of events that are published.