예제 #1
0
파일: Core.cs 프로젝트: smithydll/boxsocial
 public void DisposeOf()
 {
     userProfileCache = null;
 }
예제 #2
0
파일: Core.cs 프로젝트: smithydll/boxsocial
        public Core(Mysql db)
        {
            this.db = db;
            ItemKey.populateItemTypeCache(this);

            userProfileCache = new PrimitivesCache(this);
            itemsCache = new NumberedItemsCache(this);
            accessControlCache = new AccessControlCache(this);

            primitiveTypes = ItemKey.GetPrimitiveTypes(this);
        }
예제 #3
0
파일: Core.cs 프로젝트: smithydll/boxsocial
        public Core(TPage page, ResponseFormats responseFormat, Mysql db, Template template)
        {
            HeadHooks += new HookHandler(Core_HeadHooks);
            PrimitiveHeadHooks += new HookHandler(Core_PrimitiveHeadHooks);
            FootHooks +=new HookHandler(Core_FootHooks);
            PageHooks += new HookHandler(Core_Hooks);
            PostHooks += new HookHandler(Core_PostHooks);
            LoadApplication += new LoadHandler(Core_LoadApplication);

            this.page = page;
            this.db = db;
            this.template = template;
            this.responseFormat = responseFormat;

            ItemKey.populateItemTypeCache(this);
            //QueryCache.populateQueryCache();

            userProfileCache = new PrimitivesCache(this);
            itemsCache = new NumberedItemsCache(this);
            accessControlCache = new AccessControlCache(this);

            primitiveTypes = ItemKey.GetPrimitiveTypes(this);
        }
예제 #4
0
파일: Core.cs 프로젝트: smithydll/boxsocial
        public Core(OPage page, ResponseFormats responseFormat, Mysql db)
        {
            LoadApplication += new LoadHandler(Core_LoadApplication);

            this.db = db;
            this.responseFormat = responseFormat;

            ItemKey.populateItemTypeCache(this);
            //QueryCache.populateQueryCache();

            userProfileCache = new PrimitivesCache(this);
            itemsCache = new NumberedItemsCache(this);
            accessControlCache = new AccessControlCache(this);

            primitiveTypes = ItemKey.GetPrimitiveTypes(this);
        }