This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder