Beispiel #1
0
        public static void RegisterWurfl(IMemoryCache cache)
        {
            var configurer   = new ApplicationConfigurer();
            var wurflManager = WURFLManagerBuilder.Build(configurer);

            cache.Set("WurflManagerKey", wurflManager);
        }
Beispiel #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            var configurer = new ApplicationConfigurer();
            var manager = WURFLManagerBuilder.Build(configurer);
            HttpContext.Current.Cache[WurflManagerCacheKey] = manager;

            Bootstrap.Run();
        }
 public static void InitAppBootsraper(this IServiceCollection services)
 {
     RepositoryConfigurer.RegisterServices(services);
     ApplicationConfigurer.RegisterServices(services);
 }
Beispiel #4
0
    static MobileActionFilterAttribute()
    {
        IWURFLConfigurer configurer = new ApplicationConfigurer();

        WurflManager = WURFLManagerBuilder.Build(configurer);
    }