public void InitApp(wojilu.Web.Context.MvcContext ctx) { AppInit.InitApp(ctx); if (ctx.app.obj != null) { getHelper(ctx).IsAppRunning(ctx); } }
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); }
/// <summary> /// 初始化权限检查 /// </summary> /// <param name="ctx"></param> public virtual void InitPermission(MvcContext ctx) { }
/// <summary> /// 初始化当前被访问者 /// </summary> /// <param name="ctx"></param> public virtual void InitOwner(MvcContext ctx) { }
/// <summary> /// 初始化当前访问者 /// </summary> /// <param name="ctx"></param> public virtual void InitViewer(MvcContext ctx) { }
/// <summary> /// 初始化当前的 app /// </summary> /// <param name="ctx"></param> public virtual void InitApp(MvcContext ctx) { }
public void setContext(MvcContext wctx) { ctx = wctx; }
public MvcContextUtils(MvcContext mvcContext) { this.ctx = mvcContext; }