RunThreadInContext

Executes the code in the callback with a speciec parent context so a specific application name is visible and an optional sessionID, or a specific context can be provided from another request.

If context is provided, application name and sessionID are not allowed.

Method Signature

RunThreadInContext(applicationName=[string], sessionId=[string], context=[any], callback=[function])

Arguments

ArgumentTypeRequiredDescriptionDefault

applicationName

string

false

The application name to use run the code in.

sessionId

string

false

The sessionID to use to run the code in (requires application name).

context

any

false

The context to use to run the code in. Mututally exclusive with applicationName and sessionId.

callback

function

true

The function to run in the new context.

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC