public LockObject(WebBaseLogic <WebParameter, GoData> logic) { _logic = logic; var workarea = (_logic.RequestResources != null && _logic.RequestResources.Length > 0) ? _logic.RequestResources[0] : _logic.Name; _locks = new HostJsLockObejctEntity(workarea); _logic.CallContext_ResourceManage.AddEntity(_logic.CallContext_CurrentToken, _locks); }
public HostLogicEngine(WebBaseLogic <WebParameter, GoData> logic) { _context = new HostLogicContext(); _context.RootPath = GlobalCommon.HostCommon.RootPath; _context.RunTimeLibPath = GlobalCommon.HostCommon.RootPath + "/" + HostJsConstants.COMPILED_ROOT_PATH; _context.CommonLibPath = GlobalCommon.HostCommon.RootPath; _logic = logic; InitContext(_context, logic); }
public static void InitContext(HostLogicContext context, WebBaseLogic <WebParameter, GoData> logic) { context.AddHostJsObject(new JsDocument(context.CurrentJsEngine, context.RootPath, context.CommonLibPath, context.RunTimeLibPath)); context.AddHostJsObject(new ConsoleObject()); context.AddHostJsObject(new ServerObject(logic)); context.AddHostJsObject(new ClientObject(logic)); context.AddHostJsObject(new SessionObject(logic)); context.AddHostJsObject(new LoginInfoObject(logic)); context.AddHostJsObject(new CookieObject(logic)); context.AddHostJsObject(new ConfigObject(logic)); context.AddHostJsObject(new DBObject(logic)); context.AddHostJsObject(new InputObject(logic)); context.AddHostJsObject(new LogicObject(logic)); context.AddHostJsObject(new ComFuncObject()); context.AddHostJsObject(new FrameCacheObject(logic)); context.AddHostJsObject(new LockObject(logic)); }
public InputObject(WebBaseLogic <WebParameter, GoData> logic) { _logic = logic; _ld = new LogicData(); if (_logic.CallContext_Parameter != null) { //添加querystring foreach (var s in _logic.CallContext_Parameter.Domain(DomainKey.QUERY_STRING)) { _ld.SetValue(s.Key, s.Value); } //添加postback数据 foreach (var s in _logic.CallContext_Parameter.Domain(DomainKey.POST_DATA)) { _ld.SetValue(s.Key, s.Value); } } }
public FileObject(WebBaseLogic <WebParameter, GoData> logic) { _logic = logic; }
public ConfigObject(WebBaseLogic <WebParameter, GoData> logic) { _logic = logic; }
public ServerObject(WebBaseLogic <WebParameter, GoData> logic) { _logic = logic; }
public LoginInfoObject(WebBaseLogic <WebParameter, GoData> logic) { _logic = logic; }
public ClientObject(WebBaseLogic <WebParameter, GoData> logic) { _logic = logic; }
public HostLogicEngine(HostLogicContext context, WebBaseLogic <WebParameter, GoData> logic) { _context = context; _logic = logic; InitContext(_context, logic); }