CsGlobals constructor (1 of 4)

Initializes a new instance of the CsGlobals class with the specified global variables.

public CsGlobals(IReadOnlyDictionary<string, object?> globals)
parameter description
globals A dictionary containing global variables.

See Also


CsGlobals constructor (2 of 4)

Initializes a new instance with the specified global and local variables (no execution context).

public CsGlobals(IReadOnlyDictionary<string, object?> globals, 
    IReadOnlyDictionary<string, object?> locals)
parameter description
globals Global variables.
locals Local variables.

See Also


CsGlobals constructor (3 of 4)

Initializes a new instance of the CsGlobals class with the specified global variables and context.

public CsGlobals(IReadOnlyDictionary<string, object?> globals, KestrunContext krcontext)
parameter description
globals A dictionary containing global variables.
krcontext The Kestrun execution context.

See Also


CsGlobals constructor (4 of 4)

Initializes a new instance of the CsGlobals class with the specified global variables, context, and local variables.

public CsGlobals(IReadOnlyDictionary<string, object?> globals, KestrunContext krcontext, 
    IReadOnlyDictionary<string, object?> locals)
parameter description
globals A dictionary containing global variables.
krcontext The Kestrun execution context.
locals A dictionary containing local variables.

See Also