예제 #1
0
 public void InitApp(wojilu.Web.Context.MvcContext ctx)
 {
     AppInit.InitApp(ctx);
     if (ctx.app.obj != null)
     {
         getHelper(ctx).IsAppRunning(ctx);
     }
 }
예제 #2
0
        public void Update(wojilu.Web.Context.MvcContext ctx)
        {
            IMember owner = ctx.owner.obj;
            int     appId = ctx.app.Id;

            String key = GetCacheKey(owner, appId);

            String content = getIndexCache(appId, owner);

            CacheManager.GetApplicationCache().Put(key, content);
        }
예제 #3
0
 /// <summary>
 /// 初始化权限检查
 /// </summary>
 /// <param name="ctx"></param>
 public virtual void InitPermission(MvcContext ctx)
 {
 }
예제 #4
0
 /// <summary>
 /// 初始化当前被访问者
 /// </summary>
 /// <param name="ctx"></param>
 public virtual void InitOwner(MvcContext ctx)
 {
 }
예제 #5
0
 /// <summary>
 /// 初始化当前访问者
 /// </summary>
 /// <param name="ctx"></param>
 public virtual void InitViewer(MvcContext ctx)
 {
 }
예제 #6
0
 /// <summary>
 /// 初始化当前的 app
 /// </summary>
 /// <param name="ctx"></param>
 public virtual void InitApp(MvcContext ctx)
 {
 }
예제 #7
0
 public void setContext(MvcContext wctx)
 {
     ctx = wctx;
 }
예제 #8
0
 public MvcContextUtils(MvcContext mvcContext)
 {
     this.ctx = mvcContext;
 }