NServiceBus specify order of Handlers execution
- by John Simons
Just wondering if this is the way to specify the order to run a handler
(AuthorizationHandler) before all others?
public void SpecifyOrder(Order order)
{
order.Specify(First<AuthorizationHandler>.Then<IHandleMessages<IMessage>>());
}
It just feels odd to add Then<IHandleMessages<IMessage>>().
Is there a nicer way of saying to the Bus execute x handler before all
others?