Class BowireScriptCall

Namespace
Kuestenlogik.Bowire.Scripting
Assembly
Kuestenlogik.Bowire.dll

One script run: the script, the request it belongs to and the scope it may read and write.

public sealed class BowireScriptCall
Inheritance
BowireScriptCall
Inherited Members

Constructors

BowireScriptCall()

public BowireScriptCall()

Properties

CapturedJson

The values scripts share across the calls of one run, as ctx.vars.captured, as a JSON object. Written back after the run.

public string CapturedJson { get; set; }

Property Value

string

CollectionVarsJson

#1111 — ctx.vars.collection: values stored with the collection or flow the call belongs to, as a JSON object. Written back after the run.

public string CollectionVarsJson { get; set; }

Property Value

string

Environment

The environment, as ctx.env. ctx.env.set writes here.

public IDictionary<string, string> Environment { get; init; }

Property Value

IDictionary<string, string>

Limits

How long and how much the script may run.

public BowireScriptLimits Limits { get; init; }

Property Value

BowireScriptLimits

Method

The method the call invokes, as ctx.method.

public string Method { get; init; }

Property Value

string

Request

The request. A pre-request script's changes are written back here.

public BowireScriptRequest Request { get; init; }

Property Value

BowireScriptRequest

RequestVarsJson

#1111 — ctx.vars.request: values from the pre-request to the post-response script of one call, as a JSON object. The caller hands the pre-request script's result to the post-response script.

public string RequestVarsJson { get; set; }

Property Value

string

Response

The response, for a post-response script.

public BowireScriptResponse? Response { get; init; }

Property Value

BowireScriptResponse

SendRequest

#1111 — how a ctx.sendRequest of the script goes out: the host's invoke path (the protocol plugins for bowire test). Null: the script's request fails, saying it is not available here.

public Func<BowireScriptSendRequest, CancellationToken, Task<BowireScriptSendResponse>>? SendRequest { get; init; }

Property Value

Func<BowireScriptSendRequest, CancellationToken, Task<BowireScriptSendResponse>>

Service

The service the call goes to, as ctx.service.

public string Service { get; init; }

Property Value

string

Shape

The protocol shape that decides the ctx members: rest, grpc, mqtt or websocket.

public string Shape { get; init; }

Property Value

string

Source

The script's source.

public required string Source { get; init; }

Property Value

string