예제 #1
0
 /// <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;
     }
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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())
 {
 }
예제 #4
0
 /// <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;
 }