/// <summary>	Initializes a new instance of the PooledSocketAsyncEventArgs class. </summary>
        /// <param name="parentPool">	The pool that owns this instance. </param>
        public PoolAwareSocketAsyncEventArgs(SimpleObjectPool <SocketAsyncEventArgs> parentPool)
        {
            if (null == parentPool)
            {
                throw new ArgumentNullException("parentPool");
            }

            _parentPool = parentPool;
        }
Beispiel #2
0
 /// <summary>	Initializes a new instance of the PooledSocketAsyncEventArgs class. </summary>
 /// <param name="parentPool">	The pool that owns this instance. </param>
 public PoolAwareSocketAsyncEventArgs(SimpleObjectPool <SocketAsyncEventArgs> parentPool)
 {
     _parentPool = parentPool ?? throw new ArgumentNullException(nameof(parentPool));
 }