Пример #1
0
            internal DirectoryServiceFailOnSearch(LdapAuthIT outerInstance)
            {
                this._outerInstance     = outerInstance;
                FailOnSearchInterceptor = new BaseInterceptorAnonymousInnerClass(this);

                try
                {
                    Service.addFirst(FailOnSearchInterceptor);
                }
                catch (LdapException e)
                {
                    throw new Exception(e);
                }
            }
Пример #2
0
            internal DirectoryServiceWaitOnSearch(LdapAuthIT outerInstance, long waitingTimeMillis)
            {
                this._outerInstance     = outerInstance;
                WaitOnSearchInterceptor = new BaseInterceptorAnonymousInnerClass(this, waitingTimeMillis);

                try
                {
                    Service.addFirst(WaitOnSearchInterceptor);
                }
                catch (LdapException e)
                {
                    throw new Exception(e);
                }
            }