Class ServerProcess
A ServerProcess is responsible for launching or attaching to a language server, providing access to its input and output streams, and tracking its lifetime.
public abstract class ServerProcess : IDisposable
- Inheritance
-
ServerProcess
- Implements
- Derived
Constructors
- ServerProcess(ILoggerFactory)
Create a new ServerProcess.
Properties
- Exited
Event raised when the server has exited.
- HasStarted
A Task that completes when the server has started.
- InputStream
The server's input stream.
- IsRunning
Is the server running?
- Log
The process's logger.
- LoggerFactory
The factory for loggers used by the process and its components.
- OutputStream
The server's output stream.
- ServerExitCompletion
The TaskCompletionSource<TResult> used to signal server exit.
- ServerStartCompletion
The TaskCompletionSource<TResult> used to signal server startup.
Methods
- Dispose()
Dispose of resources being used by the launcher.
- Dispose(bool)
Dispose of resources being used by the launcher.
- ~ServerProcess()
Finaliser for ServerProcess.
- OnExited()
Raise the Exited event.
- StartAsync()
Start or connect to the server.
- StopAsync()
Stop or disconnect from the server.