Esempio n. 1
0
        public CurlParticle Get()
        {
            CurlParticle particle = _pool.Get();

            particle.OnStop += OnStopHandler;
            return(particle);
        }
Esempio n. 2
0
 private void OnStopHandler(CurlParticle particle)
 {
     particle.OnStop -= OnStopHandler;
     Release(particle);
 }
Esempio n. 3
0
 public void Release(CurlParticle particle)
 {
     _pool.Back(particle);
 }