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; }
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; }
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); }