Class AScenarioSender
Inherited Members
Namespace: Xareus.Scenarios.Network
Assembly: Xareus.Scenarios.Network.dll
Syntax
public abstract class AScenarioSender
Properties
Scenarios
Declaration
public Dictionary<string, Scenario> Scenarios { get; }
Property Value
Type | Description |
---|---|
Dictionary<string, Scenario> |
Methods
InternalScenarioChange(object, EventArgs)
Declaration
protected void InternalScenarioChange(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
object | sender | |
EventArgs | e |
InternalTransitionFired(object, TransitionFiredEventArgs)
Declaration
protected void InternalTransitionFired(object sender, TransitionFiredEventArgs arg)
Parameters
Type | Name | Description |
---|---|---|
object | sender | |
TransitionFiredEventArgs | arg |
PostRegisterToScenario(Scenario)
This method is called when a new scenario is registered
Declaration
protected abstract void PostRegisterToScenario(Scenario scenario)
Parameters
Type | Name | Description |
---|---|---|
Scenario | scenario |
RegisterToScenario(Scenario)
Declaration
public void RegisterToScenario(Scenario scenario)
Parameters
Type | Name | Description |
---|---|---|
Scenario | scenario |
ScenarioChange(string, ScenarioState)
This method is called when the scenario this instance is registered to changes
Declaration
protected abstract void ScenarioChange(string scenarioInstanceId, ScenarioState scenarioState)
Parameters
Type | Name | Description |
---|---|---|
string | scenarioInstanceId | The instance Id of the scenario |
ScenarioState | scenarioState | The state of the scenario |
TransitionFired(string, Transition, IContext, IContext, IContext, IContext)
This method is called when a transition of a scenario this instance is registered to changes
Declaration
protected abstract void TransitionFired(string scenarioInstanceId, Transition transition, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
Type | Name | Description |
---|---|---|
string | scenarioInstanceId | The instance Id of the scenario |
Transition | transition | The transition |
IContext | externalContext | The external context |
IContext | scenarioContext | The current scenario context |
IContext | sequenceContext | The upstream tokens (i.e. sequence context) |
IContext | eventContext | The event associated with the transition |
UnregisterFromScenario(string)
Declaration
public void UnregisterFromScenario(string scenarioId)
Parameters
Type | Name | Description |
---|---|---|
string | scenarioId |