private void OnGetStockCode() { TaskCompletionSource <bool> tcs = null; tcs = new TaskCompletionSource <bool>(); //Task.Delay(3000).Wait(); _clsDataAccessUtil.Delay(3000); tcs.SetResult(true); string strStockCode = ""; strStockCode = GetStockCode(); if (strStockCode == "End") { return; } GetOpt10005Caller(strStockCode); proBar10005.Value = _seqNo; WriteTextSafe(strStockCode + "(" + ClsAxKH.GetMasterCodeName(strStockCode) + ")" + " 작업 중"); // tcs.SetResult(true); }
private void WaitTime() { TaskCompletionSource <bool> tcs = null; tcs = new TaskCompletionSource <bool>(); //Task.Delay(3000).Wait(); if (ClsAxKH.SPEED_CALL == true) { _clsDataAccessUtil.Delay(550); } else { _clsDataAccessUtil.Delay(3650); } tcs.SetResult(true); }
private void WaitTime() { TaskCompletionSource <bool> tcs = null; tcs = new TaskCompletionSource <bool>(); //Task.Delay(3000).Wait(); _clsDataAccessUtil.Delay(3600); tcs.SetResult(true); }