Пример #1
0
        public ActionResult StokKarti()
        {
            CacheFonksiyon cache = new CacheFonksiyon();

            //  ViewBag.kategoriler = cache.kategoriGetir();
            ViewBag.OlcuBirimi = cache.cacheTanimGetir(Enums.CacheKey.OlcuBirimi.ToString());

            return(View());
        }
Пример #2
0
        protected void Application_Start()
        {
            GlobalFilters.Filters.Add(new AuthorizeAttribute());//Tüm uygulamada Authorize
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            ControllerBuilder.Current.SetControllerFactory(new NinjectControllerFactory());

            CacheProvider.Instance = new DefaultCacheProvider();
            CacheFonksiyon fonksiyon = new CacheFonksiyon();

            fonksiyon.CacheClear();
            fonksiyon.CacheCreate();
        }
Пример #3
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            //Ninject için kullanacağızzzz
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            ControllerBuilder.Current.SetControllerFactory(new NinjectControllerFactory());

            cacheProvider.Instance = new DefaultCacheProvider();//cache mekanizmasını çalıştırıyoruz.
            CacheFonksiyon fonksiyon = new CacheFonksiyon();

            fonksiyon.CacheTemizleme();
            fonksiyon.CacheOlustur();
        }