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