Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created June 16, 2016 02:15
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/8321e989a12e5b06ef6c0491f932b1b1 to your computer and use it in GitHub Desktop.
Save dcomartin/8321e989a12e5b06ef6c0491f932b1b1 to your computer and use it in GitHub Desktop.
Console.WriteLine("Input: ");
var input = Console.ReadLine();
var commandNoId = new HelloWorld {Input = $"Enqueing with no Id: {input}"};
mediator.Enqueue(commandNoId);
var id = Guid.NewGuid();
var commandWithId = new HelloWorld { Input = $"Enqueing with Id({id}): {input}"};
mediator.Enqueue(id, commandWithId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment