Esempio n. 1
0
 // Token: 0x06000358 RID: 856 RVA: 0x0001222C File Offset: 0x0001042C
 public static void UnregisterChangeNotification(ADNotificationRequestCookie requestCookie, bool block)
 {
     if (requestCookie == null)
     {
         throw new ArgumentNullException("requestCookie");
     }
     foreach (ADNotificationRequest request in requestCookie.Requests)
     {
         ADNotificationListener.UnRegisterChangeNotification(request, block);
     }
 }
Esempio n. 2
0
        // Token: 0x06000356 RID: 854 RVA: 0x000121D0 File Offset: 0x000103D0
        public static ADOperationResult TryRegisterChangeNotification <T>(Func <ADObjectId> baseDNGetter, ADNotificationCallback callback, object context, int retryCount, out ADNotificationRequestCookie cookie) where T : ADConfigurationObject, new()
        {
            cookie = null;
            ADNotificationRequestCookie returnedCookie = cookie;
            ADOperationResult           result         = ADNotificationAdapter.TryRunADOperation(delegate()
            {
                ADObjectId baseDN = (baseDNGetter == null) ? null : baseDNGetter();
                object wrappedContext;
                ADNotificationAdapter.CreateWrappedContextForRegisterChangeNotification(ref baseDN, callback, context, out wrappedContext);
                returnedCookie = ADNotificationAdapter.RegisterChangeNotification <T>(baseDN, wrappedContext, false, 0);
            }, retryCount);

            cookie = returnedCookie;
            return(result);
        }
Esempio n. 3
0
        // Token: 0x06000352 RID: 850 RVA: 0x00012014 File Offset: 0x00010214
        public static ADNotificationRequestCookie RegisterChangeNotification <T>(ADObjectId baseDN, object wrappedContext, bool wrapAsADOperation, int retryCount) where T : ADConfigurationObject, new()
        {
            ADNotificationRequestCookie cookie = null;

            if (wrapAsADOperation)
            {
                ADNotificationAdapter.RunADOperation(delegate()
                {
                    cookie = ADNotificationAdapter.RegisterChangeNotification <T>(baseDN, new ADNotificationCallback(ADNotificationAdapter.OnNotification), wrappedContext);
                }, retryCount);
            }
            else
            {
                cookie = ADNotificationAdapter.RegisterChangeNotification <T>(baseDN, new ADNotificationCallback(ADNotificationAdapter.OnNotification), wrappedContext);
            }
            return(cookie);
        }
Esempio n. 4
0
 // Token: 0x06000355 RID: 853 RVA: 0x00012150 File Offset: 0x00010350
 public static ADOperationResult TryRegisterChangeNotification <T>(ADObjectId baseDN, ADNotificationCallback callback, int retryCount, out ADNotificationRequestCookie cookie) where T : ADConfigurationObject, new()
 {
     return(ADNotificationAdapter.TryRegisterChangeNotification <T>(() => baseDN, callback, null, retryCount, out cookie));
 }
Esempio n. 5
0
 // Token: 0x06000357 RID: 855 RVA: 0x00012222 File Offset: 0x00010422
 public static void UnregisterChangeNotification(ADNotificationRequestCookie request)
 {
     ADNotificationAdapter.UnregisterChangeNotification(request, false);
 }