예제 #1
0
        public void RegisterCustomAction(ControllerAction action,
                                         Func <HttpEntityManager, UriTemplateMatch, RequestParams> handler)
        {
            Ensure.NotNull(action, "action");
            Ensure.NotNull(handler, "handler");

            UriRouter.RegisterAction(action, handler);
        }
예제 #2
0
        public void RegisterAction(ControllerAction action, Action <HttpEntityManager, UriTemplateMatch> handler)
        {
            Ensure.NotNull(action, "action");
            Ensure.NotNull(handler, "handler");

            UriRouter.RegisterAction(action, (man, match) => {
                handler(man, match);
                return(new RequestParams(ESConsts.HttpTimeout));
            });
        }
예제 #3
0
 public List <UriToActionMatch> GetAllUriMatches(Uri uri) => UriRouter.GetAllUriMatches(uri);