NServiceBus specify order of Handlers execution
Posted
by John Simons
on Stack Overflow
See other posts from Stack Overflow
or by John Simons
Published on 2010-05-16T23:43:39Z
Indexed on
2010/05/16
23:50 UTC
Read the original article
Hit count: 182
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?
© Stack Overflow or respective owner