public ProviderModule(AnalyzerSettings analyzerSettings) { AnalyzerSettings = analyzerSettings; }
public static SystemSettings GetSystemSettings(AnalyzerSettings analyzerSettings) { var provider = new ProviderModule(analyzerSettings); return provider.GetSystemSettings(); }
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; }