示例#1
0
 // Token: 0x06001BF5 RID: 7157 RVA: 0x00078FF1 File Offset: 0x000771F1
 public void RunConfigurationUpdater(bool waitForCompletion, ReplayConfigChangeHints changeHint)
 {
     Dependencies.ADConfig.Refresh(string.Format("ConfigurationUpdater.RunConfigurationUpdater {0}", changeHint));
     this.RunConfigurationUpdaterImpl(waitForCompletion, false, changeHint);
 }
示例#2
0
        // Token: 0x06001BFB RID: 7163 RVA: 0x000791F0 File Offset: 0x000773F0
        private void RunConfigurationUpdaterImpl(bool waitForCompletion, bool includeInProgressItem, ReplayConfigChangeHints changeHint)
        {
            ExTraceGlobals.ReplayManagerTracer.TraceDebug <bool, bool, ReplayConfigChangeHints>((long)this.GetHashCode(), "ConfigurationUpdater: RunConfigurationUpdater() called for a full scan: waitForCompletion='{0}', includeInProgressItem='{1}', changeHint='{2}'", waitForCompletion, includeInProgressItem, changeHint);
            ReplaySystemQueuedItem replaySystemQueuedItem = new ReplaySystemRunConfigurationUpdaterFullScan(this.m_riManager, changeHint);

            ((ReplaySystemRunConfigurationUpdaterFullScan)replaySystemQueuedItem).WaitForCompletion = waitForCompletion;
            ReplaySystemQueuedItem replaySystemQueuedItem2;
            EventWaitHandle        eventWaitHandle;

            if (!this.m_systemQueue.EnqueueUniqueItem(replaySystemQueuedItem, null, includeInProgressItem, out replaySystemQueuedItem2, out eventWaitHandle))
            {
                if (replaySystemQueuedItem2 != null)
                {
                    replaySystemQueuedItem = replaySystemQueuedItem2;
                    ExTraceGlobals.ReplayManagerTracer.TraceDebug((long)this.GetHashCode(), "ConfigurationUpdater: RunConfigurationUpdater did not enqueue a ReplaySystemRunConfigurationUpdaterFullScan operation because there is already one in the queue.");
                }
                else
                {
                    ExTraceGlobals.ReplayManagerTracer.TraceDebug((long)this.GetHashCode(), "ConfigurationUpdater: RunConfigurationUpdater failed to enqueue a ReplaySystemRunConfigurationUpdaterFullScan operation.");
                }
            }
            else
            {
                ExTraceGlobals.ReplayManagerTracer.TraceDebug((long)this.GetHashCode(), "ConfigurationUpdater: RunConfigurationUpdater successfully enqueued a ReplaySystemRunConfigurationUpdaterFullScan operation.");
            }
            if (waitForCompletion)
            {
                replaySystemQueuedItem.Wait();
            }
        }