public EventSession(DEServer server, IDEWebSocketContext context) { this.server = server; this.context = context; server.AddEventSession(this); } // ctor
} // func RemoveAttachedGlobal #endregion #region -- IDEWebSocketProtocol --------------------------------------------------- bool IDEWebSocketProtocol.AcceptWebSocket(IDEWebSocketContext webSocket) { if (!Config.GetAttribute("allowDebug", false)) { return(false); } new LuaDebugSession(this, webSocket); return(true); }
} // proc CleanOutdatedEvents #endregion #region -- WebSocket Events ------------------------------------------------------- public bool AcceptWebSocket(IDEWebSocketContext webSocket) { if (eventSessionsClosing) { return(false); } else { new EventSession(this, webSocket); return(true); } } // func AcceptWebSocket
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