Namespace RDCore.SDK.Runtime.Hosting
Classes
- JsonSchemaSet
The JSON Schemas (draft 2020-12, the dialect of OpenAPI 3.1) of the JSON values the declared types of a program take where a host passes arguments (Arguments) and receives a returned value (Value). Each class of the workspace that a schema reaches has one definition (Definitions), which the schemas refer to.
- ParameterJsonSchema
The JSON Schema of the argument a parameter is given (Parameters).
- ProcedureJsonSchema
The JSON Schemas of what a host gives and receives when it invokes a procedure (SignatureOf(string, string)).
- ProgramArgument
An argument of a call of an invocation, by the name of the parameter it is passed to: a JSON value (ProgramValueArgument), the value of one of the invocation's calls (ProgramCallArgument), a part of an error (ProgramErrorArgument), or the run's value (ProgramResultArgument).
- ProgramCall
A call that an invocation makes in its run, other than the procedure's: one of its Calls, whose value is kept under Name, one of its Guards, or one of its ResultCalls. It calls a function of a standard module, a function of a predeclared class on the class's default instance (MS-VBAL §5.2.4.1.2), or, with no Procedure, makes a new object of a class (MS-VBAL §5.6.8).
- ProgramCallArgument
An argument that passes the value of one of the invocation's calls (Calls), an object, to a parameter whose declared type is
Object,Variant, or a class or interface the object is of (MS-VBAL §5.6.7, asTypeOftells it). A parameter of any other declared type, or an object of another class, is error 13 (Type mismatch).
- ProgramErrorArgument
An argument of the OnError hook that passes a part of the error the procedure left unhandled: its number (
Err.Number) as a JSON number, or its description (Err.Description) as a JSON string. The value converts to the parameter's declared type as the value of a ProgramValueArgument does.
- ProgramFactoryCall
The factory of an invocation (Factory): a function of a predeclared class that runs on the class's default instance and returns the object the invocation's procedure runs on.
- ProgramHookCall
A hook of an invocation (BeforeProcedure, OnError): a member of an interface, called on the procedure's object when the object implements the interface (MS-VBAL §5.2.4.2), as
TypeOftells it (MS-VBAL §5.6.7). The object calls its own member that implements the interface's (MS-VBAL §5.3.1.9). A hook is not called on an object that does not implement the interface, nor for a procedure of a standard module.
- ProgramInvocation
One call of a procedure of a composed program, by name, with its arguments; and, in the same run, the calls that make the values it needs (Calls), the guards that may answer for it (Guards), the factory that makes the object it runs on (Factory), the hooks of that object (BeforeProcedure, OnError), and the calls that turn its value into the invocation's (ResultCalls).
- ProgramJsonSchemas
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.
- ProgramResultArgument
An argument of one of the ResultCalls that passes the run's value: the procedure's, the object of the guard or the hook that answered for it, or the value of the result call before.
- ProgramValueArgument
An argument given as a JSON value, converted to the parameter's declared type as the arguments of a ProgramInvocation are.
Interfaces
- IComposedProgram
An RD-VBA program composed once from its files (parsed, its symbols defined and bound), which makes the machines that run it.
- IProgramMachine
A machine: one runtime session of a composed program (CreateMachineAsync(CancellationToken)), which runs one invocation at a time.
Enums
- ProgramErrorPart
The part of an error that a ProgramErrorArgument passes (MS-VBAL §6.1.3.2, the
Errclass).