protected virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { this.DisconnectAll(); _threadPool = null; _sessionManagers = null; _contextLookupTable = null; } _disposed = true; } }
/// <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(); }