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

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

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
services IServiceCollection
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.