internal void AddAsyncCallBack(AsyncCalls asyncalls, long id) { if (CallBackDict == null) { CallBackDict = new ConcurrentDictionary <long, AsyncCalls>(); } CallBackDict.AddOrUpdate(id, asyncalls, (a, b) => asyncalls); if (asyncalls.CurrentServer.IsCheckReadTimeOut) { KeyValuePair <long, DateTime> tot = new KeyValuePair <long, DateTime>(id, DateTime.Now.AddMilliseconds(asyncalls.CurrentServer.ReadOutTimeMilliseconds)); AsyncWaitTimeOut.Add(tot); } }