Just wanted to know if there is a way to implement the Access control message handler in NServiceBus.By "Access Control Handler". I mean that one handler should always be executed before other handlers and should control (or rather conditionally prevent another handler from executing).
Does anyone know how to implement this in NServiceBus?
I have defined priority handlers to execute in EndPointConfig like this
public class EndpointConfig : IConfigureThisEndpoint, AsA_Server, ISpecifyMessageHandlerOrdering
{
#region ISpecifyMessageHandlerOrdering Members
public void SpecifyOrder(Order order)
{
order.Specify<First<AccessControlHandler>>();
}
#endregion
}
Thanks in advance,
Vijay.
source
share