コード例 #1
0
ファイル: StartTLSState.cs プロジェクト: nickwhaley/ubiety
 /// <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);
     }
 }
コード例 #2
0
ファイル: State.cs プロジェクト: nickwhaley/ubiety
 /// <summary>
 /// 
 /// </summary>
 /// <param name="data">
 /// A <see cref="System.Object"/>
 /// </param>
 public virtual void Execute(ubiety.common.Tag data)
 {
 }
コード例 #3
0
ファイル: ConnectingState.cs プロジェクト: nickwhaley/ubiety
 /// <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();
 }