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); } }); }
public abstract void ProcessRoute(NaiveWebsiteRouter router, MethodInfo methodInfo, object obj);