Exemplo n.º 1
0
 private void DisposeItems()
 {
     _content?.Dispose();
     _content = null;
     _close?.Dispose();
     _close = null;
     _resultsView?.Dispose();
     _resultsView = null;
     _resultsTxv?.Dispose();
     _resultsTxv = null;
     _orderId?.Dispose();
     _orderId = null;
     _checkBtn?.Dispose();
     _checkBtn      = null;
     _presenter     = null;
     _servicePoints = null;
     _spRecyclerView?.Dispose();
     _spRecyclerView = null;
     _mapFragment?.Dispose();
     _mapFragment = null;
     _viewIcon?.SetImageDrawable(null);
     _viewIcon.Dispose();
     _animationView?.Dispose();
     _receiver?.Dispose();
     _receiver = null;
     _connection?.Dispose();
     _connection = null;
 }
Exemplo n.º 2
0
        protected override void OnResume()
        {
            base.OnResume();

            _receiver = new ConnectionReceiver(_connection, this);
            RegisterReceiver(_receiver, new IntentFilter(ConnectivityManager.ConnectivityAction));
        }
Exemplo n.º 3
0
 public BatchAction(ConnectionSender sender, ConnectionReceiver receiver, IBandwidthLimiter?senderBandwidthLimiter, IBandwidthLimiter?receiverBandwidthLimiter, Action <Exception> exceptionCallback)
 {
     _sender   = sender;
     _receiver = receiver;
     _senderBandwidthLimiter   = senderBandwidthLimiter;
     _receiverBandwidthLimiter = receiverBandwidthLimiter;
     _exceptionCallback        = exceptionCallback;
 }
Exemplo n.º 4
0
 private void ConnectionTable_OnConnectionRemoved(ConnectionTable connectionTable, ProxyConnection connection)
 {
     lock (ConnectionLock)
     {
         if (ConnectionReceiver.TryGetValue(connection, out var receiver))
         {
             if (receiver.Count == ConnectionsPerThread)
             {
                 IncompleteReceivers.Push(receiver);
             }
             receiver.RemoveConnection(connection);
             ConnectionReceiver.Remove(connection);
         }
     }
 }