Esempio n. 1
0
        /// <nodoc/>
        public DebugServer(LoggingContext loggingContext, PathTable pathTable, PathTranslator buildXLToUserPathTranslator, int port)
        {
            m_logger         = Tracing.Logger.CreateLogger();
            m_loggingContext = loggingContext;
            m_buildXLToUserPathTranslator = buildXLToUserPathTranslator;
            m_state        = new DebuggerState(pathTable, m_loggingContext, m_logger);
            Port           = port;
            m_serverSocket = new TcpListener(IPAddress.Parse("127.0.0.1"), port);

            m_serverStarted  = False;
            m_serverShutDown = False;
        }
Esempio n. 2
0
        /// <nodoc/>
        public DebugServer(LoggingContext loggingContext, int port, Func <IDebugger, ISession> sessionFactory)
        {
            m_logger         = Tracing.Logger.CreateLogger();
            m_loggingContext = loggingContext;
            m_sessionFactory = sessionFactory;

            Port           = port;
            m_serverSocket = new TcpListener(IPAddress.Parse("127.0.0.1"), port);

            m_serverStarted  = False;
            m_serverShutDown = False;
        }