Table of Contents

Class ProgramJsonSchemas

Namespace
RDCore.SDK.Runtime.Hosting
Assembly
RDCore.SDK.dll

The JSON Schemas of what a host gives and receives when it invokes a procedure of a composed program (JsonSchemasAsync(string, CancellationToken)): each parameter's, and the returned value's, by JsonSchemaSet.

public sealed class ProgramJsonSchemas
Inheritance
ProgramJsonSchemas
Inherited Members

Constructors

ProgramJsonSchemas(Func<string, string, VBTypeMemberSymbol?>, Func<VBClassType, VBClassModuleSymbol?>, string)

The JSON Schemas of what a host gives and receives when it invokes a procedure of a composed program (JsonSchemasAsync(string, CancellationToken)): each parameter's, and the returned value's, by JsonSchemaSet.

public ProgramJsonSchemas(Func<string, string, VBTypeMemberSymbol?> procedureOf, Func<VBClassType, VBClassModuleSymbol?> classModuleOf, string referencePrefix)

Parameters

procedureOf Func<string, string, VBTypeMemberSymbol>

The procedure of the program that a module and a procedure name, as an invocation names them (ProgramInvocation), with its parameters and its type as the binding has them; null for a name that names none.

classModuleOf Func<VBClassType, VBClassModuleSymbol>

The class module of the program that declares a class type (JsonSchemaSet).

referencePrefix string

What a reference to a definition is, before its name (JsonSchemaSet).

Properties

Definitions

The definition of each class of the workspace that a signature refers to, by name, in the order the signatures reached them (Definitions).

public IReadOnlyDictionary<string, JsonObject> Definitions { get; }

Property Value

IReadOnlyDictionary<string, JsonObject>

Methods

SignatureOf(string, string)

The JSON Schemas of a procedure's parameters and of its value; a class they reach is added to Definitions.

public ProcedureJsonSchema? SignatureOf(string module, string procedure)

Parameters

module string

The name of the module, as an invocation names it.

procedure string

The name of the procedure, as an invocation names it.

Returns

ProcedureJsonSchema

The procedure's signature; null when the names name no Sub, Function or Property Get of the program.