Table of Contents

Class RDCorePlatformServerHost<TApp>

Namespace
RDCore.SDK.Server
Assembly
RDCore.SDK.dll

Simplifies implementing a RDCore LSP server application.

public class RDCorePlatformServerHost<TApp> : AppHost<TApp>, IDisposable where TApp : class, IRDCoreServerApp

Type Parameters

TApp
Inheritance
AppHost<TApp>
RDCorePlatformServerHost<TApp>
Implements
Inherited Members

Remarks

🧩 Override templated methods to customize your application.

Constructors

RDCorePlatformServerHost()

Simplifies implementing a RDCore LSP server application.

public RDCorePlatformServerHost()

Remarks

🧩 Override templated methods to customize your application.

Properties

ExitCode

Gets the application exit code corresponding to the current ServerState.

public override int ExitCode { get; }

Property Value

int

LogFileName

A server logs to a file named for its executable (RDCore.LanguageServer.log, RDCore.ParseServer.log, RDCore.Diagnostics.log), unless it names another (LogFileName).

protected override string? LogFileName { get; }

Property Value

string

ServerStateProvider

The service that manages the operational state of the language server. Resolved from the built host so it is the same singleton the app, the lifecycle handlers and the health check share.

protected IServerStateProvider ServerStateProvider { get; }

Property Value

IServerStateProvider

WritesToConsole

A server writes nothing to its console (WritesToConsole): its client is on a pipe, and its log is in its file.

protected override bool WritesToConsole { get; }

Property Value

bool

Methods

Configure(IConfigurationBuilder, IServiceCollection, string[])

Override to supply application-specific IConfiguration configuration.

protected override void Configure(IConfigurationBuilder configuration, IServiceCollection services, string[] args)

Parameters

configuration IConfigurationBuilder

An IConfigurationBuilder to configure application settings.

services IServiceCollection

The services of the application host being built, to register the application's own services in.

args string[]

Any command-line arguments that were supplied to the application, parsed into SdkAppOptions.

Remarks

🧩 The base implementation binds and configures appsettings.json options, with command-line arguments as overrides.