예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SessionPool"/> class.
 /// </summary>
 /// <param name="soapAuth">The SOAP authentication service.</param>
 /// <param name="count">The count.</param>
 public SessionPool(SoapAuth soapAuth, int count)
 {
     this.soapAuth  = soapAuth;
     this.count     = count;
     this.semaphore = new SemaphoreSlim(0, count);
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SessionPoolSimple"/> class.
 /// </summary>
 /// <param name="soapAuth">The SOAP authentication service.</param>
 public SessionPoolSimple(SoapAuth soapAuth)
 {
     this.soapAuth = soapAuth;
 }