Table of Contents

Class ServerCommand

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

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

name string

The name of 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

string

Methods

ExecuteAsync(CancellationToken, JArray?)

Executes a parameterless command asynchronously on the server.

public abstract Task ExecuteAsync(CancellationToken token, JArray? args = null)

Parameters

token CancellationToken

A CancellationToken, for cooperative asynchronous task cancellation.

args JArray

The deserialized raw command parameter object.

Returns

Task