Class ScenarioState
Inheritance
ScenarioState
Assembly: Xareus.Scenarios.dll
Syntax
[Serializable]
public class ScenarioState
Properties
ExternalContext
Declaration
public IContext ExternalContext { get; set; }
Property Value
ScenarioContext
Declaration
public IContext ScenarioContext { get; set; }
Property Value
Tokens
Declaration
public Dictionary<string, IContext> Tokens { get; set; }
Property Value
Methods
AddToken(string, IContext)
Declaration
public void AddToken(string sequenceIdPath, IContext token)
Parameters
LoadFromFile(string)
Loads a scenario state from an XML file
Declaration
public static ScenarioState LoadFromFile(string scenarioStateFile)
Parameters
Type |
Name |
Description |
string |
scenarioStateFile |
The input XML file to load from
|
Returns
SaveToFile(string, ScenarioState)
Saves a scenario state to an XML file
Declaration
public static void SaveToFile(string scenarioStateFile, ScenarioState scenarioState)
Parameters
Type |
Name |
Description |
string |
scenarioStateFile |
The output XML file to save to
|
ScenarioState |
scenarioState |
The scenario state to save
|
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides