Skip to content

Instantly share code, notes, and snippets.

View jimmyp's full-sized avatar

Jim Pelletier jimmyp

  • Melbourne, Australia
View GitHub Profile
public static class UselessStatefulScope // ;)
{
public static void ProcessRequest<T>(T Request)
{
//Resolve the validator & validate the request
var valid = Container.Resolve<IValidate<T>>();
if(!valid(Request))
throw new Exception();
//Resolve all the applicable processors and process them