Exemplo n.º 1
0
 public void Disconnect()
 {
     CtkUtil.DisposeTaskTry(this.runningTask);
     CtkNetUtil.DisposeTcpClientTry(this.MyTcpClient);
     this.OnDisconnect(new CtkNonStopTcpStateEventArgs()
     {
         Message = "Disconnect method is executed"
     });
 }
Exemplo n.º 2
0
 public void NonStopRunStop()
 {
     CtkUtil.DisposeTaskTry(this.runningTask);
     this.runningTask = null;
 }