Class RDCoreLanguageServerHost<TApp>
Simplifies implementing a RDCore LSP server application.
public class RDCoreLanguageServerHost<TApp> : AppHost<TApp>, IDisposable where TApp : class, IRDCoreServerApp
Type Parameters
TApp
- Inheritance
-
AppHost<TApp>RDCoreLanguageServerHost<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
RDCoreLanguageServerHost()
Simplifies implementing a RDCore LSP server application.
public RDCoreLanguageServerHost()
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
Gets a service that manages the operational state of the language server.
protected IServerStateProvider ServerStateProvider { get; }
Property Value
Methods
ConfigureAdditionalExternalServices(IServiceCollection, IConfiguration)
Configures any additional services that must be injected in the application constructor.
🧩 The base implementation does nothing.
protected override void ConfigureAdditionalExternalServices(IServiceCollection services, IConfiguration configuration)
Parameters
servicesIServiceCollectionThe service provider of the application host being configured.
configurationIConfigurationThe current application configuration.
Remarks
👉 The purpose of external services is to bootstrap the application and support functionality at the entry point level by registering the services that must be injected in the IRDCoreApp application.