Class ServerCommand
Represents any server command that a RDCore server application can receive,
or that a RDCore client application can send.
public abstract class ServerCommand
- Inheritance
-
ServerCommand
- Derived
- Inherited Members
Remarks
👉 Avoid hard-coding server command names in client-side services.
LSP 3.17 § ExecuteCommand request
Constructors
ServerCommand(string)
Represents any server command that a RDCore server application can receive,
or that a RDCore client application can send.
protected ServerCommand(string name)
Parameters
namestringThe
nameof the underlying protocol-level (LSP) workspace command request.
Remarks
👉 Avoid hard-coding server command names in client-side services.
LSP 3.17 § ExecuteCommand request
Properties
Name
The Name of the underlying protocol-level (LSP) workspace command request.
public string Name { get; }
Property Value
Methods
ExecuteAsync(CancellationToken, JArray?)
Executes a parameterless command asynchronously on the server.
public abstract Task ExecuteAsync(CancellationToken token, JArray? args = null)
Parameters
tokenCancellationTokenA CancellationToken, for cooperative asynchronous task cancellation.
argsJArrayThe deserialized raw command parameter object.