Exemple #1
0
 /// <summary>
 /// Default function for a state-transition.
 /// </summary>
 /// <param name="session">Corresponding Surface protocol run.</param>
 /// <param name="state">Next state.</param>
 internal virtual void changeState(Session session, State state)
 {
     session.changeState(state);
 }
Exemple #2
0
 /// <summary>
 /// The constructor.
 /// </summary>
 protected Session()
 {
     state = Start.Instance(this);
     _running = true;
 }
Exemple #3
0
 /// <summary>
 /// Changes the state of the protocol run.
 /// </summary>
 /// <param name="to">State to transition to.</param>
 internal void changeState(State to)
 {
     Logger.log(TLogLevel.logEverything, "Info: Bottom protocol state: " + to.name);
     state = to;
 }