/// <summary> /// /// </summary> /// <param name="data"> /// A <see cref="System.Object"/> /// </param> public override void Execute(ubiety.common.Tag data) { if (data.LocalName == "proceed") { _current.Socket.StartSecure(); _current.State = new ConnectedState(); _current.Execute(null); } }
/// <summary> /// /// </summary> /// <param name="data"> /// A <see cref="System.Object"/> /// </param> public virtual void Execute(ubiety.common.Tag data) { }
/// <summary> /// Executes the state. In this case we are telling the socket to connect to the server. /// </summary> /// <param name="data"> /// The <see cref="ubiety.common.Tag"/> is not needed here as we are just starting the connection. /// </param> public override void Execute(ubiety.common.Tag data) { _current.Socket.Connect(); }