示例#1
0
            public EventSession(DEServer server, IDEWebSocketContext context)
            {
                this.server  = server;
                this.context = context;

                server.AddEventSession(this);
            }             // ctor
示例#2
0
        }         // func RemoveAttachedGlobal

        #endregion

        #region -- IDEWebSocketProtocol ---------------------------------------------------

        bool IDEWebSocketProtocol.AcceptWebSocket(IDEWebSocketContext webSocket)
        {
            if (!Config.GetAttribute("allowDebug", false))
            {
                return(false);
            }

            new LuaDebugSession(this, webSocket);
            return(true);
        }
示例#3
0
        }         // proc CleanOutdatedEvents

        #endregion

        #region -- WebSocket Events -------------------------------------------------------

        public bool AcceptWebSocket(IDEWebSocketContext webSocket)
        {
            if (eventSessionsClosing)
            {
                return(false);
            }
            else
            {
                new EventSession(this, webSocket);
                return(true);
            }
        }         // func AcceptWebSocket
示例#4
0
            private DEConfigItem currentItem = null;             // current node, that is used as parent

            public LuaDebugSession(LuaEngine engine, IDEWebSocketContext context)
            {
                this.engine  = engine;
                this.log     = LoggerProxy.Create(engine.Log, "Debug Session");
                this.context = context;

                cancelSessionTokenSource = new CancellationTokenSource();
                sessionTask = Task.Run(Execute, cancelSessionTokenSource.Token);

                UseNode("/");

                Info("Debug session established.");
            }             // ctor