コード例 #1
0
ファイル: VisualStudioTracer.cs プロジェクト: yazide/SpecFlow
        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;
        }
コード例 #2
0
        internal IClassificationTypeRegistryService ClassificationRegistry = null; // Set via MEF

        public IntegrationOptions GetOptions()
        {
            var dte = VsxHelper.GetDte(ServiceProvider);

            return(IntegrationOptionsProvider.GetOptions(dte));
        }