コード例 #1
0
        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);
        }
コード例 #2
0
 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);
 }
コード例 #3
0
 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));
 }
コード例 #4
0
 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);
         }
     }
 }
コード例 #5
0
 public FileObject(WebBaseLogic <WebParameter, GoData> logic)
 {
     _logic = logic;
 }
コード例 #6
0
 public ConfigObject(WebBaseLogic <WebParameter, GoData> logic)
 {
     _logic = logic;
 }
コード例 #7
0
 public ServerObject(WebBaseLogic <WebParameter, GoData> logic)
 {
     _logic = logic;
 }
コード例 #8
0
 public LoginInfoObject(WebBaseLogic <WebParameter, GoData> logic)
 {
     _logic = logic;
 }
コード例 #9
0
 public ClientObject(WebBaseLogic <WebParameter, GoData> logic)
 {
     _logic = logic;
 }
コード例 #10
0
 public HostLogicEngine(HostLogicContext context, WebBaseLogic <WebParameter, GoData> logic)
 {
     _context = context;
     _logic   = logic;
     InitContext(_context, logic);
 }