Beispiel #1
0
 protected override IController GetControllerInstance(RequestContext requestContext, Type controllerType)
 {
     if (controllerType == null)
     {
         throw new HttpException(404, "Controller not found.");
     }
     // Change the line below to whatever suits your needs.
     return(_reader.CreateController(new MyImplementation()));
 }