Class RDCorePlatformServerHost<TApp>
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.
- Implement (
override) ConfigureExternalLogging(IServiceCollection, ILoggingBuilder, IConfiguration) to override the default ILoggingBuilder providers.
Constructors
RDCorePlatformServerHost()
Simplifies implementing a RDCore LSP server application.
public RDCorePlatformServerHost()
Remarks
🧩 Override templated methods to customize your application.
- Implement (
override) ConfigureExternalLogging(IServiceCollection, ILoggingBuilder, IConfiguration) to override the default ILoggingBuilder providers.
Properties
ExitCode
Gets the application exit code corresponding to the current ServerState.
public override int ExitCode { get; }
Property Value
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
Methods
Configure(IConfigurationBuilder, IServiceCollection, string[])
Override to supply application-specific IConfiguration configuration.
protected override void Configure(IConfigurationBuilder configuration, IServiceCollection services, string[] args)
Parameters
configurationIConfigurationBuilderservicesIServiceCollectionargsstring[]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.