Пример #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;
 }