internal static void Refresh() { ConfigurationReader.ConfigurationTracer.TraceDebug(0L, "ConfigurationReader is now refreshing TargetForestConfigurationCache."); DateTime populateDeadline = DateTime.UtcNow + ConfigurationReader.refreshTimeout; TargetForestConfigurationCache.Populate(populateDeadline); ConfigurationReader.ConfigurationTracer.TraceDebug(0L, "ConfigurationReader is done refreshing TargetForestConfigurationCache."); }
private static void Initialize(RequestLogger requestLogger) { requestLogger.CaptureRequestStage("CRInit"); ConfigurationReader.ConfigurationTracer.TraceDebug(0L, "ConfigurationReader is now initializing NetworkServiceImpersonator."); NetworkServiceImpersonator.Initialize(); requestLogger.CaptureRequestStage("CRNSInit"); ConfigurationReader.ConfigurationTracer.TraceDebug(0L, "ConfigurationReader is done initializing NetworkServiceImpersonator."); ConfigurationReader.ConfigurationTracer.TraceDebug(0L, "ConfigurationReader is now initializing Dns for AS discovery."); AutoDiscoverDnsReader.Initialize(); requestLogger.CaptureRequestStage("CRAD"); ConfigurationReader.ConfigurationTracer.TraceDebug(0L, "ConfigurationReader is done initializing Dns for AS discovery."); DateTime populateDeadline = DateTime.UtcNow + ConfigurationReader.initializeTimeInterval; ConfigurationReader.ConfigurationTracer.TraceDebug(0L, "ConfigurationReader is now refreshing TargetForestConfigurationCache."); TargetForestConfigurationCache.Populate(populateDeadline); ConfigurationReader.ConfigurationTracer.TraceDebug(0L, "ConfigurationReader is done refreshing TargetForestConfigurationCache."); requestLogger.CaptureRequestStage("CRTC"); ConfigurationReader.ASFaultInjectionTracer.RegisterExceptionInjectionCallback(new ExceptionInjectionCallback(FaultInjection.Callback)); ConfigurationReader.RequestDispatchFaultInjectionTracer.RegisterExceptionInjectionCallback(new ExceptionInjectionCallback(FaultInjection.Callback)); }