public AsyncRun NewAsync() { AsyncRun run1 = new AsyncRun(this); run1.CallSend += new Action <byte[]>(this.SendData); return(run1); }
public AsyncRun NewAsync() { var tmp = new AsyncRun(this); tmp.CallSend += SendData; return(tmp); }
internal void AddAsyncRunBack(AsyncRun asyncalls, long id) { AsyncRunDiy.AddOrUpdate(id, asyncalls, (a, b) => asyncalls); if (IsCheckAsyncTimeOut) { KeyValuePair <long, DateTime> tot = new KeyValuePair <long, DateTime>(id, DateTime.Now.AddMilliseconds(MillisecondsTimeout)); AsyncWaitTimeOut.Add(tot); } }
internal void AddAsyncRunBack(AsyncRun asyncalls, long id) { AsyncRunDiy.AddOrUpdate(id, asyncalls, (a, b) => asyncalls); }