Example #1
0
 internal void Initialize(SingleCallContinuationPool pool, AsyncContinuation asyncContinuation)
 {
     if (pool == null)
     {
         throw new ArgumentNullException("pool");
     }
     if (asyncContinuation == null)
     {
         throw new ArgumentNullException("asyncContinuation");
     }
     this.pool = pool;
     this.asyncContinuation = asyncContinuation;
 }
Example #2
0
 internal SingleCallContinuation(SingleCallContinuationPool pool)
 {
     this.pool     = pool;
     this.Delegate = this.Function;
 }