Interface IActionScriptContext

Defines an action script context.

Namespace: StylelabsStylelabs.MStylelabs.M.ScriptingStylelabs.M.Scripting.TypesStylelabs.M.Scripting.Types.V1_0Action
Assembly: Stylelabs.M.Scripting.Types.dll
Syntax
RequestResponse

public interface IActionScriptContext

Properties

ChangeTracker

Gets used in combination with entity targets.

Declaration
RequestResponse

IChangeTracker ChangeTracker { get; }
Property Value
TypeDescription
IChangeTracker

Data

Gets arguments passed through the script. Should never be null.

Declaration
RequestResponse

JToken Data { get; }
Property Value
TypeDescription
JToken

ExecutionEvent

Gets the execution event.

Declaration
RequestResponse

ExecutionEvent? ExecutionEvent { get; }
Property Value
TypeDescription
ExecutionEvent

ExecutionPhase

Gets the execution phase.

Declaration
RequestResponse

ExecutionPhase? ExecutionPhase { get; }
Property Value
TypeDescription
ExecutionPhase

ExecutionSource

Gets the execution source.

Declaration
RequestResponse

ExecutionSource ExecutionSource { get; }
Property Value
TypeDescription
ExecutionSource

ExecutionType

Gets the type of execution.

Declaration
RequestResponse

ExecutionType ExecutionType { get; }
Property Value
TypeDescription
ExecutionType

PropertyBag

Gets useful collection of string keyed string properties for case when ExecutionSource is Trigger. Use to store and retrieve information between trigger phases and in or out-of-process actions. Should never be null.

Declaration
RequestResponse

IPropertyBag PropertyBag { get; }
Property Value
TypeDescription
IPropertyBag
Remarks

Note that for ExecutionType equals to ExecutionType.OutOfProcess the bag is read only.

Result

Gets or sets output of the script, possibly null.

Declaration
RequestResponse

JToken Result { get; set; }
Property Value
TypeDescription
JToken

StatusCode

Gets or sets status code to return when executed through REST.

Declaration
RequestResponse

HttpStatusCode? StatusCode { get; set; }
Property Value
TypeDescription
HttpStatusCode

Target

Gets the target.

Declaration
RequestResponse

object Target { get; }
Property Value
TypeDescription
object

TargetId

Gets the target id.

Declaration
RequestResponse

long? TargetId { get; }
Property Value
TypeDescription
long

TargetType

Gets the target type.

Declaration
RequestResponse

TargetType? TargetType { get; }
Property Value
TypeDescription
TargetType

TriggeringUserId

Gets if applicable and available an id of the user who caused event leading to this action or id of the user explicitly requesting the action.

Declaration
RequestResponse

long? TriggeringUserId { get; }
Property Value
TypeDescription
long

Methods

ToString()

Converts to string.

Declaration
RequestResponse

string ToString()
Returns
TypeDescription
string

An string.

Do you have some feedback for us?

If you have suggestions for improving this article,