Created
September 23, 2020 21:53
-
-
Save dcomartin/d27646742e07d337bc97cc3b2dc243c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PlaceOrderHandler : RequestHandler<PlaceOrder> | |
{ | |
private readonly IAmACommandProcessor _commandProcessor; | |
public PlaceOrderHandler(IAmACommandProcessor commandProcessor) | |
{ | |
_commandProcessor = commandProcessor; | |
} | |
[UsePolicy(CommandProcessor.RETRYPOLICY, 3)] | |
public override PlaceOrder Handle(PlaceOrder command) | |
{ | |
throw new InvalidOperationException(); | |
return base.Handle(command); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment