/// <summary> /// Releases the bound Service Manager instance. /// </summary> public void Dispose() { if (_svcPoolMgr != null && _svcMgr != null) { _svcPoolMgr.ReleaseServiceManager(_svcMgr); // prevent multiple disposals. _svcMgr = null; _svcPoolMgr = null; } }
/// <summary> /// Initializes a new instance of the <see cref="NetSuiteServicePool"/> class. /// </summary> /// <param name="svcPoolMgr">The manager for this service pool.</param> /// <param name="logger">The logger.</param> public NetSuiteServicePool(NetSuiteServicePoolManager svcPoolMgr, ILogger logger) { _log = logger; _svcPoolMgr = svcPoolMgr; }
/// <summary> /// Initializes a new instance of the <see cref="NetSuiteServicePool"/> class. /// </summary> /// <param name="svcPoolMgr">The manager for this service pool.</param> public NetSuiteServicePool(NetSuiteServicePoolManager svcPoolMgr) : this(svcPoolMgr, new NullLogger()) { }
/// <summary> /// Initializes a new instance of the <see cref="SearchSession"/> class. /// </summary> /// <param name="poolManager">The Service Pool Manager.</param> internal SearchSession(NetSuiteServicePoolManager poolManager) { _svcPoolMgr = poolManager; }