예제 #1
0
파일: CloudClient.cs 프로젝트: kk3959/ZYNet
        public AsyncRun NewAsync()
        {
            AsyncRun run1 = new AsyncRun(this);

            run1.CallSend += new Action <byte[]>(this.SendData);
            return(run1);
        }
예제 #2
0
        public AsyncRun NewAsync()
        {
            var tmp = new AsyncRun(this);

            tmp.CallSend += SendData;
            return(tmp);
        }
예제 #3
0
파일: CloudClient.cs 프로젝트: kk3959/ZYNet
        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);
            }
        }
예제 #4
0
 internal void AddAsyncRunBack(AsyncRun asyncalls, long id)
 {
     AsyncRunDiy.AddOrUpdate(id, asyncalls, (a, b) => asyncalls);
 }