Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created October 4, 2017 01:36
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/8834ea49dedbfde2bbfcacf6e2e8fe4c to your computer and use it in GitHub Desktop.
Save dcomartin/8834ea49dedbfde2bbfcacf6e2e8fe4c to your computer and use it in GitHub Desktop.
internal class GreetingCommandHandler : RequestHandler<GreetingCommand>
{
[UseCommandSourcing(step: 1, timing: HandlerTiming.Before)]
public override GreetingCommand Handle(GreetingCommand command)
{
Console.WriteLine("Hello {0}", command.Name);
return base.Handle(command);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment