static LdapConnection()
 {
     Hashtable table = new Hashtable();
     asyncResultTable = Hashtable.Synchronized(table);
     waitHandle = new ManualResetEvent(false);
     partialResultsProcessor = new LdapPartialResultsProcessor(waitHandle);
     retriever = new PartialResultsRetriever(waitHandle, partialResultsProcessor);
 }
예제 #2
0
        static LdapConnection()
        {
            handleTable = new Hashtable();
            // initialize the lock
            objectLock = new Object();

            Hashtable tempAsyncTable = new Hashtable();
            s_asyncResultTable = Hashtable.Synchronized(tempAsyncTable);

            s_waitHandle = new ManualResetEvent(false);

            s_partialResultsProcessor = new LdapPartialResultsProcessor(s_waitHandle);

            s_retriever = new PartialResultsRetriever(s_waitHandle, s_partialResultsProcessor);
        }
예제 #3
0
 internal LdapPartialResultsProcessor(ManualResetEvent eventHandle)
 {
     _workThreadWaitHandle = eventHandle;
     _ = new PartialResultsRetriever(eventHandle, this);
 }
예제 #4
0
		static LdapConnection()
		{
			LdapConnection.handleTable = new Hashtable();
			LdapConnection.objectLock = new object();
			Hashtable hashtables = new Hashtable();
			LdapConnection.asyncResultTable = Hashtable.Synchronized(hashtables);
			LdapConnection.waitHandle = new ManualResetEvent(false);
			LdapConnection.partialResultsProcessor = new LdapPartialResultsProcessor(LdapConnection.waitHandle);
			LdapConnection.retriever = new PartialResultsRetriever(LdapConnection.waitHandle, LdapConnection.partialResultsProcessor);
		}