コード例 #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
ファイル: SessionPoolSimple.cs プロジェクト: fleetwoodn/sacs
 /// <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;
 }