示例#1
0
        public static AppFunc Create(AppFunc defaultApp, IDictionary<string, AppFunc> map)
        {
            if (defaultApp == null)
                throw new ArgumentNullException("defaultApp");

            var mapper = new UrlMapper(defaultApp);
            mapper.Remap(map);
            return mapper.Call;
        }
示例#2
0
文件: UrlMapper.cs 项目: anurse/gate
        public static AppDelegate Create(AppDelegate app, IDictionary<string, AppDelegate> map)
        {
            if (app == null)
                throw new ArgumentNullException("app");

            var mapper = new UrlMapper(app);
            mapper.Remap(map);
            return mapper.Call;
        }
示例#3
0
        public static AppFunc Create(AppFunc defaultApp, IDictionary <string, AppFunc> map)
        {
            if (defaultApp == null)
            {
                throw new ArgumentNullException("defaultApp");
            }

            var mapper = new UrlMapper(defaultApp);

            mapper.Remap(map);
            return(mapper.Call);
        }