SpawnTransport
Namespace: E2E.Engine.Protocol
public sealed class SpawnTransport : IEngineTransportStarts the server as a child process per connection and speaks over its stdin and stdout, the way an editor starts a language server. Its
stderr is kept for the message of a failure. Upstream’s spawnTransport.
Inheritance: object
Implements: IEngineTransport
Constructors
Section titled “Constructors”SpawnTransport(SpawnTransportOptions)
Section titled “SpawnTransport(SpawnTransportOptions)”public SpawnTransport(SpawnTransportOptions options)Starts the server as a child process per connection and speaks over its stdin and stdout, the way an editor starts a language server. Its
stderr is kept for the message of a failure. Upstream’s spawnTransport.
Parameters
| Name | Type | Description |
|---|---|---|
options |
SpawnTransportOptions |
Properties
Section titled “Properties”public string Label { get; }A short description for error messages: the command, or the address.
Value: string
Methods
Section titled “Methods”OpenAsync(TransportContext)
Section titled “OpenAsync(TransportContext)”public Task<ITransportConnection> OpenAsync(TransportContext context)Parameters
| Name | Type | Description |
|---|---|---|
context |
TransportContext |
Returns: Task<ITransportConnection>