Esempio n. 1
0
 private void HandleSmtpSendConnectorDeleted(ADNotificationEventArgs args)
 {
     if (this.SmtpSendConnectorDeleted != null)
     {
         this.SmtpSendConnectorDeleted(args);
     }
 }
Esempio n. 2
0
 private void HandleDeliveryAgentConnectorDeleted(ADNotificationEventArgs args)
 {
     if (this.DeliveryAgentConnectorDeleted != null)
     {
         this.DeliveryAgentConnectorDeleted(args);
     }
 }
Esempio n. 3
0
 private void HandleADSiteLinkDeleted(ADNotificationEventArgs args)
 {
     if (this.ADSiteLinkDeleted != null)
     {
         this.ADSiteLinkDeleted(args);
     }
 }
Esempio n. 4
0
 private void HandleDatabaseDeleted(ADNotificationEventArgs args)
 {
     if (this.DatabaseDeleted != null)
     {
         this.DatabaseDeleted(args);
     }
 }
Esempio n. 5
0
 private void HandleJournalRuleDeleted(ADNotificationEventArgs args)
 {
     if (this.JournalRuleDeleted != null)
     {
         this.JournalRuleDeleted(args);
     }
 }
Esempio n. 6
0
 private void HandleInterceptorRuleDeleted(ADNotificationEventArgs args)
 {
     if (this.InterceptorRuleDeleted != null)
     {
         this.InterceptorRuleDeleted(args);
     }
 }
Esempio n. 7
0
 private void HandleRemoteDomainDeleted(ADNotificationEventArgs args)
 {
     if (this.RemoteDomainDeleted != null)
     {
         this.RemoteDomainDeleted(args);
     }
 }
Esempio n. 8
0
 private void HandleTransportRuleDeleted(ADNotificationEventArgs args)
 {
     if (this.TransportRuleDeleted != null)
     {
         this.TransportRuleDeleted(args);
     }
 }
Esempio n. 9
0
 private void HandleReceiveConnectorDeleted(ADNotificationEventArgs args)
 {
     if (this.ReceiveConnectorDeleted != null)
     {
         this.ReceiveConnectorDeleted(args);
     }
 }
Esempio n. 10
0
 private void HandleAcceptedDomainDeleted(ADNotificationEventArgs args)
 {
     if (this.AcceptedDomainDeleted != null)
     {
         this.AcceptedDomainDeleted(args);
     }
 }
Esempio n. 11
0
 private void HandleExchangeServerDeleted(ADNotificationEventArgs args)
 {
     if (this.ExchangeServerDeleted != null)
     {
         this.ExchangeServerDeleted(args);
     }
 }
Esempio n. 12
0
 private void HandleForeignConnectorDeleted(ADNotificationEventArgs args)
 {
     if (this.ForeignConnectorDeleted != null)
     {
         this.ForeignConnectorDeleted(args);
     }
 }
Esempio n. 13
0
        // Token: 0x0600101E RID: 4126 RVA: 0x00041FE0 File Offset: 0x000401E0
        protected override void OnServerChangeCallback(ADNotificationEventArgs args)
        {
            if (args != null)
            {
                this.tracer.TraceDebug <string, string>(0L, "OnServerChangeCallback notification change type {0}, object ID {1}", args.ChangeType.ToString(), (args.Id == null) ? "(null)" : args.Id.ToString());
            }
            if (args.ChangeType == ADNotificationChangeType.ModifyOrAdd && args.Id != null)
            {
                Server            server;
                ADOperationResult adoperationResult;
                if (ADNotificationAdapter.TryReadConfiguration <Server>(() => this.configurationSession.Read <Server>(args.Id), out server, out adoperationResult))
                {
                    lock (this.serversLock)
                    {
                        if (this.servers != null && this.servers.IsChangeIgnorable(server))
                        {
                            return;
                        }
                        goto IL_107;
                    }
                }
                this.tracer.TraceError <ADObjectId, Exception>(0L, "Failed to read server object with Id {0} due to {1}", args.Id, adoperationResult.Exception);
            }
IL_107:
            base.ReadConfiguration();
        }
Esempio n. 14
0
        private static void OnExchangeAssiatnceConfigChanged(ADNotificationEventArgs args)
        {
            ExchangeAssistance exchangeAssistanceObjectFromADWithRetry = HelpProvider.GetExchangeAssistanceObjectFromADWithRetry(OrganizationId.ForestWideOrgId);

            if (exchangeAssistanceObjectFromADWithRetry != null)
            {
                switch (HelpProvider.callingAppName)
                {
                case HelpProvider.HelpAppName.Ecp:
                    if (exchangeAssistanceObjectFromADWithRetry.ControlPanelHelpURL != null)
                    {
                        Interlocked.Exchange <Uri>(ref HelpProvider.baseUrl, Utilities.NormalizeUrl(exchangeAssistanceObjectFromADWithRetry.ControlPanelHelpURL));
                        return;
                    }
                    break;

                case HelpProvider.HelpAppName.Owa:
                    if (exchangeAssistanceObjectFromADWithRetry.OWAHelpURL != null)
                    {
                        Interlocked.Exchange <Uri>(ref HelpProvider.baseOwaPremiumUrl, exchangeAssistanceObjectFromADWithRetry.OWAHelpURL);
                    }
                    if (exchangeAssistanceObjectFromADWithRetry.OWALightHelpURL != null)
                    {
                        Interlocked.Exchange <Uri>(ref HelpProvider.baseOwaLightUrl, exchangeAssistanceObjectFromADWithRetry.OWALightHelpURL);
                    }
                    break;

                default:
                    return;
                }
            }
        }
Esempio n. 15
0
 private static void HandleConfigurationChange(ADNotificationEventArgs args)
 {
     try
     {
         if (Interlocked.Increment(ref RmsClientManagerLog.notificationHandlerCount) == 1)
         {
             Server            localServer       = null;
             ADOperationResult adoperationResult = ADNotificationAdapter.TryRunADOperation(delegate()
             {
                 ITopologyConfigurationSession topologyConfigurationSession = DirectorySessionFactory.Default.CreateTopologyConfigurationSession(ConsistencyMode.IgnoreInvalid, ADSessionSettings.FromRootOrgScopeSet(), 1191, "HandleConfigurationChange", "f:\\15.00.1497\\sources\\dev\\data\\src\\storage\\rightsmanagement\\RmsClientManagerLog.cs");
                 localServer = topologyConfigurationSession.FindLocalServer();
             });
             if (!adoperationResult.Succeeded)
             {
                 RmsClientManagerLog.Tracer.TraceError <Exception>(0L, "Failed to get the local server.  Unable to reload the log configuration. Error {0}", adoperationResult.Exception);
             }
             else
             {
                 RmsClientManagerLog.Configure(localServer);
             }
         }
     }
     finally
     {
         Interlocked.Decrement(ref RmsClientManagerLog.notificationHandlerCount);
     }
 }
        // Token: 0x0600001F RID: 31 RVA: 0x0000306C File Offset: 0x0000126C
        private void ServerConfigUpdate(ADNotificationEventArgs args)
        {
            ExTraceGlobals.ServiceTracer.TraceDebug(0L, "TransportService ServerConfigUpdate");
            ADOperationResult adoperationResult;

            this.ReadServerConfig(out adoperationResult);
        }
 private void ServerChangeCallback(ADNotificationEventArgs args)
 {
     lock (this.notificationLock)
     {
         if (!this.hasUnregisteredNotification)
         {
             this.OnServerChangeCallback(args);
         }
     }
 }
 private void ADNotificationCallback(ADNotificationEventArgs args)
 {
     lock (this.thisLock)
     {
         if (!this.notificationArrived)
         {
             this.notificationArrived = true;
             this.EnqueueTriggerCacheRefresh();
         }
     }
 }
Esempio n. 19
0
 // Token: 0x06000004 RID: 4 RVA: 0x00002304 File Offset: 0x00000504
 private void ChangeNotificationDispatch(ADNotificationEventArgs args)
 {
     try
     {
         if (Interlocked.Increment(ref this.notificationHandlerCount) == 1)
         {
             this.distributionTimer.Change(Servicelet.NotificationDelay, Servicelet.ReloadDelay);
         }
     }
     finally
     {
         Interlocked.Decrement(ref this.notificationHandlerCount);
     }
 }
Esempio n. 20
0
 private static void EventLogDeleteNotification(ADNotificationEventArgs args)
 {
     if (args.ChangeType != ADNotificationChangeType.Delete)
     {
         return;
     }
     Globals.LogEvent(DirectoryEventLogConstants.Tuple_TransportDeletedADNotificationReceived, null, new object[]
     {
         args.ChangeType.ToString(),
         args.Context,
         args.Id,
         args.LastKnownParent,
         args.Type
     });
 }
Esempio n. 21
0
 private static void ExchangeRpcClientAccessChangeNotification(ADNotificationEventArgs args)
 {
     Configuration.GeneralTracer.TraceDebug(0L, "ExchangeRpcClientAccessChangeNotification called");
     ADNotificationAdapter.TryRunADOperation(delegate()
     {
         ITopologyConfigurationSession topologyConfigurationSession = DirectorySessionFactory.Default.CreateTopologyConfigurationSession(ConsistencyMode.IgnoreInvalid, ADSessionSettings.FromRootOrgScopeSet(), 280, "ExchangeRpcClientAccessChangeNotification", "f:\\15.00.1497\\sources\\dev\\DoMT\\src\\Service\\Configuration.cs");
         topologyConfigurationSession.ServerTimeout = Configuration.ADTimeout;
         Server server = topologyConfigurationSession.ReadLocalServer();
         if (server == null)
         {
             Configuration.GeneralTracer.TraceError(0L, "Failed to find local server in AD");
             Configuration.eventLog.LogEvent(AddressBookEventLogConstants.Tuple_FailedToFindLocalServerInAD, string.Empty, new object[0]);
             if (args == null)
             {
                 Configuration.ServiceEnabled = false;
                 return;
             }
             Configuration.stopService();
             return;
         }
         else
         {
             ExchangeRpcClientAccess exchangeRpcClientAccess = topologyConfigurationSession.Read <ExchangeRpcClientAccess>(ExchangeRpcClientAccess.FromServerId(server.Id));
             if (exchangeRpcClientAccess != null)
             {
                 if (Configuration.exchangeRCANotificationCookie == null)
                 {
                     Configuration.exchangeRCANotificationCookie = ADNotificationAdapter.RegisterChangeNotification <ExchangeRpcClientAccess>(exchangeRpcClientAccess.Id, new ADNotificationCallback(Configuration.ExchangeRpcClientAccessChangeNotification));
                 }
                 if (Configuration.EncryptionRequired != exchangeRpcClientAccess.EncryptionRequired)
                 {
                     Configuration.GeneralTracer.TraceDebug <bool, bool>(0L, "Changing EncryptionRequired from {0} to {1}", Configuration.EncryptionRequired, exchangeRpcClientAccess.EncryptionRequired);
                     Configuration.EncryptionRequired = exchangeRpcClientAccess.EncryptionRequired;
                 }
                 return;
             }
             Configuration.GeneralTracer.TraceDebug(0L, "ExchangeRpcClientAccess disabled");
             Configuration.eventLog.LogEvent(AddressBookEventLogConstants.Tuple_ExchangeRpcClientAccessDisabled, string.Empty, new object[0]);
             if (args == null)
             {
                 Configuration.ServiceEnabled = false;
                 return;
             }
             Configuration.stopService();
             return;
         }
     });
 }
        // Token: 0x06000032 RID: 50 RVA: 0x0000389C File Offset: 0x00001A9C
        private static void ServerChangeCallback(ADNotificationEventArgs args)
        {
            Server server = null;

            ADNotificationAdapter.TryReadConfiguration <Server>(delegate()
            {
                ITopologyConfigurationSession topologyConfigurationSession = DirectorySessionFactory.Default.CreateTopologyConfigurationSession(ConsistencyMode.IgnoreInvalid, ADSessionSettings.FromRootOrgScopeSet(), 362, "ServerChangeCallback", "f:\\15.00.1497\\sources\\dev\\Approval\\src\\Applications\\ModeratedDLApplication\\ModeratedDLApplication.cs");
                return(topologyConfigurationSession.ReadLocalServer());
            }, out server);
            if (server == null)
            {
                ModeratedDLApplication.diag.TraceError(0L, "Cannot read local server for updating message tracking config. Continue with previous config.");
                return;
            }
            MessageTrackingLog.Configure(server);
        }
 private static void NotificationHandler(ADNotificationEventArgs args)
 {
     FederationTrustCache.Tracer.TraceDebug(0L, "FederationTrustCache: changes detected in configuration in AD.");
     try
     {
         FederationTrustCache.LoadFederationTrust();
     }
     catch (LocalizedException arg)
     {
         FederationTrustCache.Tracer.TraceError <LocalizedException>(0L, "FederationTrustCache: failed to read federation trust from AD due exception: {0}", arg);
         return;
     }
     if (FederationTrustCache.Change != null)
     {
         FederationTrustCache.Tracer.TraceDebug(0L, "FederationTrustCache: notifying subscribers of change.");
         FederationTrustCache.Change();
     }
 }
Esempio n. 24
0
 private static void NotificationHandler(ADNotificationEventArgs args)
 {
     LocalServerCache.Tracer.TraceDebug(0L, "LocalServerCache: local server object changed");
     try
     {
         LocalServerCache.ReadLocalServer();
     }
     catch (LocalizedException arg)
     {
         LocalServerCache.Tracer.TraceError <LocalizedException>(0L, "LocalServerCache: failed to read local server object from AD due exception: {0}", arg);
         return;
     }
     if (LocalServerCache.Change != null)
     {
         LocalServerCache.Tracer.TraceDebug(0L, "LocalServerCache: notifying subscribers of change.");
         LocalServerCache.Change(LocalServerCache.localServer);
     }
 }
Esempio n. 25
0
        protected void ChangeCallback(ADNotificationEventArgs args)
        {
            IConfigurationSession session = (IConfigurationSession)args.Context;

            this.adChangeCoalescer.Value.OnEvent(delegate
            {
                try
                {
                    this.InternalRead(session, this.RefreshOnChange);
                }
                catch (DataSourceTransientException)
                {
                }
                catch (DataSourceOperationException)
                {
                }
                catch (DataValidationException)
                {
                }
            });
        }
 // Token: 0x0600001E RID: 30 RVA: 0x00003050 File Offset: 0x00001250
 private void ConnectorsConfigUpdate(ADNotificationEventArgs args)
 {
     ExTraceGlobals.ServiceTracer.TraceDebug(0L, "TransportService ConnectorsConfigUpdate");
     base.GetAndSetBindings(false);
 }
Esempio n. 27
0
 protected void OnChange(ADNotificationEventArgs args)
 {
     this.cache.InvalidateCache(this.id);
 }
Esempio n. 28
0
 private void OnTransportSettingsChanged(ADNotificationEventArgs args)
 {
     DiagnosticsAggregationServicelet.Log.Log(DiagnosticsAggregationEvent.Information, "Transportsettings changed", new object[0]);
     DiagnosticsAggregationServicelet.transportSettingsChanged = true;
 }
Esempio n. 29
0
 private static void OnLocalServerChanged(ADNotificationEventArgs args)
 {
     ExTraceGlobals.DiagnosticsAggregationTracer.TraceDebug(0L, "LocalServer changed");
     DiagnosticsAggregationServicelet.Log.Log(DiagnosticsAggregationEvent.Information, "LocalServer changed", new object[0]);
     DiagnosticsAggregationServicelet.GetLocalServer();
 }
 protected abstract void OnServerChangeCallback(ADNotificationEventArgs args);