/// <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); }
/// <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; }