Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created September 23, 2020 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/d27646742e07d337bc97cc3b2dc243c9 to your computer and use it in GitHub Desktop.
Save dcomartin/d27646742e07d337bc97cc3b2dc243c9 to your computer and use it in GitHub Desktop.
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