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

                server.AddEventSession(this);
            }             // ctor
Beispiel #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);
        }
Beispiel #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
Beispiel #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