Exemple #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             this.DisconnectAll();
             _threadPool         = null;
             _sessionManagers    = null;
             _contextLookupTable = null;
         }
         _disposed = true;
     }
 }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the AddressBookConnectionManager class
        /// </summary>
        public AddressBookConnectionManager()
        {
            /*
             * create the thread pool that will help us during connection and disconnection attempts
             * */
            _threadPool = new BackgroundThreadPool();

            /*
             * create a new list for storing connection managers
             * */
            _sessionManagers = new AddressBookItemConnectionManagerList();

            /*
             * create a new context lookup table to allow pre-binding of contexts to items
             * */
            _contextLookupTable = new Hashtable();
        }
		/// <summary>
		/// Initializes a new instance of the AddressBookConnectionManager class
		/// </summary>
		public AddressBookConnectionManager()
		{
			/*
			 * create the thread pool that will help us during connection and disconnection attempts
			 * */
			_threadPool = new BackgroundThreadPool();

			/*
			 * create a new list for storing connection managers
			 * */
			_sessionManagers = new AddressBookItemConnectionManagerList();

			/*
			 * create a new context lookup table to allow pre-binding of contexts to items
			 * */
			_contextLookupTable = new Hashtable();
		}
		protected virtual void Dispose(bool disposing)
		{
			if (!_disposed)
			{
				if (disposing)
				{
					this.DisconnectAll();
					_threadPool = null;
					_sessionManagers = null;
					_contextLookupTable = null;
				}
				_disposed = true;
			}
		}