Esempio n. 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;
        }
Esempio n. 2
0
        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;
        }
Esempio n. 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);
        }