示例#1
0
 public override void ProcessRoute(NaiveWebsiteRouter router, MethodInfo methodInfo, object obj)
 {
     router.AddRoute(path, (p) => {
         try {
             methodInfo.Invoke(obj, new[] { p });
         } catch (TargetInvocationException e) {
             throw new Exception("Router TargetInvocationException", e.InnerException);
         }
     });
 }
示例#2
0
 public abstract void ProcessRoute(NaiveWebsiteRouter router, MethodInfo methodInfo, object obj);