private void OnTcpConnecting(object sender, TcpConnectingEventArgs e) { try { _productCache.AddTail(e); } catch (System.Exception) { } }
void ISaiConnectionObserver.OnSaiUserDataArrival(uint remoteID, byte[] userData, long timeDelay, MessageDelayDefenseTech defenseTech) { try { var pkg = new IncomingPackage(remoteID, userData, timeDelay, defenseTech); _productCacheReceive.AddTail(pkg); this.CheckIncomgCacheThreshold(); } catch (System.Exception) { } }
public void Send(OutgoingPackage package) { _productCacheSending.AddTail(package); this.CheckOutgoingCacheThreshold(); }