/// <summary> /// Starts the language service with the specified TCP socket port. /// </summary> /// <param name="languageServicePort">The port number for the language service.</param> /// <param name="profilePaths">The object containing the profile paths to load for this session.</param> public void StartLanguageService(int languageServicePort, ProfilePaths profilePaths) { this.profilePaths = profilePaths; this.languageServiceListener = new TcpSocketServerListener( MessageProtocolType.LanguageServer, languageServicePort, this.logger); this.languageServiceListener.ClientConnect += this.OnLanguageServiceClientConnect; this.languageServiceListener.Start(); this.logger.Write( LogLevel.Normal, string.Format( "Language service started, listening on port {0}", languageServicePort)); }
/// <summary> /// Starts the debug service with the specified TCP socket port. /// </summary> /// <param name="debugServicePort">The port number for the debug service.</param> public void StartDebugService( int debugServicePort, ProfilePaths profilePaths, bool useExistingSession) { this.debugServiceListener = new TcpSocketServerListener( MessageProtocolType.DebugAdapter, debugServicePort, this.logger); this.debugServiceListener.ClientConnect += OnDebugServiceClientConnect; this.debugServiceListener.Start(); this.logger.Write( LogLevel.Normal, string.Format( "Debug service started, listening on port {0}", debugServicePort)); }