Table of Contents

Class DiscardSessionParams

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.dll

Request for rdcore/session/discard: a client asks the language server to take a module it supplied out of the platform's runtime session.

[Method("rdcore/session/discard", Direction.ClientToServer)]
public record DiscardSessionParams : IRequest, IRequest<Unit>, IRequest<DiscardSessionResult>, IBaseRequest, IEquatable<DiscardSessionParams>
Inheritance
DiscardSessionParams
Implements
IRequest
IRequest<Unit>
IBaseRequest
Inherited Members

Remarks

Running a module defines it in the session, and defining it again replaces what it declares - it never removes what it no longer does. The variables a program made therefore outlive the program, and the storage with them. A client that clears its program asks for the module to go, and the next run defines it afresh: NEW and LOAD of a shell, and RUN, which in BASIC clears the variables.

The module symbol itself stays: it is the project's, not the code's.

Properties

EndProgram

Whether the program that is running or waits is ended, and the session wiped, before the module goes. See EndProgram.

public bool EndProgram { get; init; }

Property Value

bool

ModuleName

The programmatic name of the module, as it was named when it was run.

public string ModuleName { get; init; }

Property Value

string