Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
 }
Exemplo n.º 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())
 {
 }
Exemplo n.º 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;
 }