Table of Contents

Interface IRDCoreServerProcess

Namespace
RDCore.SDK.Client
Assembly
RDCore.SDK.dll

Decouples the startup sequence from an actual Process boundary.

public interface IRDCoreServerProcess : IDisposable
Inherited Members

Properties

ExitCode

The exit code of the process once it has exited; 0 otherwise.

int ExitCode { get; }

Property Value

int

HasExited

Whether the server process has exited (or was never started).

bool HasExited { get; }

Property Value

bool

ProcessId

The operating-system identifier of the server process.

int ProcessId { get; }

Property Value

int

Methods

Shutdown()

Stops awaiting LSP server process exit to restart it.

void Shutdown()

Remarks

This method should be invoked during the Shutdown LSP server lifecycle handler.

StartAsync(string, string, CancellationTokenSource, string?)

Runs a server executable with command-line arguments mapping the specified LanguageClientSettings.

Task StartAsync(string relativePath, string pipeName, CancellationTokenSource tokenSource, string? mode = null)

Parameters

relativePath string

The path of the server executable, relative to the platform root, with or without .exe: a manifest written on Windows names RDCore.ParseServer.exe, which is RDCore.ParseServer elsewhere. The executable is started as named when it is there, and in the other spelling otherwise. When neither is there, the start fails for the path as named.

pipeName string

The name of the named pipe, passed to the server as -n.

tokenSource CancellationTokenSource

The caller's cancellation token source.

mode string

The mode rdc.exe runs in, set as RDCORE_MODE in the child environment: HostMode for the environment host, ExternalMode for the external host; null for a server that is not rdc.exe.

Returns

Task

WaitForExitAsync()

Completes when the server process exits.

Task WaitForExitAsync()

Returns

Task