private void CheckConfiguration() { if (IntegrationOptionsProvider == null) { return; } var now = DateTime.Now; if (now - configLastChecked < TimeSpan.FromSeconds(10)) { return; } var integrationOptions = IntegrationOptionsProvider.GetOptions(); if (traceConfiguration.HasChanged(integrationOptions)) { traceConfiguration = new TraceConfiguration(integrationOptions); OnTraceConfigChanged(); } configLastChecked = now; }
internal IClassificationTypeRegistryService ClassificationRegistry = null; // Set via MEF public IntegrationOptions GetOptions() { var dte = VsxHelper.GetDte(ServiceProvider); return(IntegrationOptionsProvider.GetOptions(dte)); }