示例#1
0
 public ProviderModule(AnalyzerSettings analyzerSettings)
 {
     AnalyzerSettings = analyzerSettings;
 }
示例#2
0
 public static SystemSettings GetSystemSettings(AnalyzerSettings analyzerSettings)
 {
     var provider = new ProviderModule(analyzerSettings);
     return provider.GetSystemSettings();
 }
示例#3
0
        private static Analyzer GetAnalyzer()
        {
            var analyzerSettings = new AnalyzerSettings()
                {
                    ConnectionString = WebConfigurationManager.ConnectionStrings[ConfigurationHelper.GetValueForKey("Database")].ConnectionString,
                    DatabaseName = ConfigurationHelper.GetValueForKey("Database"),
                    LogsPath = ConfigurationHelper.GetValueForKey("LogsPath"),
                    MaxChildItemsPerParent = ConfigurationHelper.GetValueForKey("MaxChildItemsPerParent"),
                    MaxVersionsPerItem = ConfigurationHelper.GetValueForKey("MaxVersionsPerItem"),
                    ContentStartPath = ConfigurationHelper.GetValueForKey("ContentStartPath")
                };

            var settings = StartUp.GetSystemSettings(analyzerSettings);
            var factory = new Factory(settings);

            var analyzer = new Analyzer(factory);
            analyzer.Analyze();
            return analyzer;
        }