Skip to content

Instantly share code, notes, and snippets.

@jmarnold
Created September 1, 2012 19:35
Show Gist options
  • Save jmarnold/3584701 to your computer and use it in GitHub Desktop.
Save jmarnold/3584701 to your computer and use it in GitHub Desktop.
Handler examples
public class get_Message_Name_handler
{
public string Execute(SaySomething input)
{
return "{0}, {1}".ToFormat(input.Message, input.Name);
}
}
public class SaySomething
{
public string Message { get; set; }
public string Name { get; set;
}
// example: /Hello/Josh (GET)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment