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, bool)

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

Task StartAsync(string relativePath, string pipeName, CancellationTokenSource tokenSource, bool hostMode = false)

Parameters

relativePath string
pipeName string
tokenSource CancellationTokenSource
hostMode bool

When true, sets RDCORE_MODE=host in the child environment (rdc.exe runs as the environment host).

Returns

Task

WaitForExitAsync()

Completes when the server process exits.

Task WaitForExitAsync()

Returns

Task