Class ContextVariable<T>
Base type for manipulating context variables. This is especially useful to define effector outputs in contexts. Can be used with ContextVariableAttribute
Inherited Members
Namespace: Xareus.Scenarios.Variables
Assembly: Xareus.Scenarios.dll
Syntax
[Renamed("SEVEN.ContextVariable", "SEVEN")]
[Renamed("SEVEN.Variables.ContextVariable", "SEVEN")]
public class ContextVariable<T> : VariablePath
Type Parameters
Name | Description |
---|---|
T |
Constructors
ContextVariable(string, ContextHolder)
Constructor
Declaration
public ContextVariable(string path, ContextHolder contexts)
Parameters
Type | Name | Description |
---|---|---|
string | path | |
ContextHolder | contexts |
ContextVariable(string, IContext, IContext, IContext)
Constructor
Declaration
[Obsolete("Use (ContextVariable(string, Parameter>, ContextHolder) instead.")]
public ContextVariable(string path, IContext externalContext, IContext scenarioContext, IContext sequenceContext)
Parameters
Type | Name | Description |
---|---|---|
string | path | |
IContext | externalContext | |
IContext | scenarioContext | |
IContext | sequenceContext |
ContextVariable(string, IContext, IContext, IContext, IContext)
Constructor
Declaration
[Obsolete("Use (ContextVariable(string, Parameter>, ContextHolder) instead.")]
public ContextVariable(string path, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
Type | Name | Description |
---|---|---|
string | path | |
IContext | externalContext | |
IContext | scenarioContext | |
IContext | sequenceContext | |
IContext | eventContext |
Methods
Get()
Get the value from the context
Declaration
public T Get()
Returns
Type | Description |
---|---|
T |
Set(T)
Set the value in the context
Declaration
public void Set(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value |