コード例 #1
0
 public ProviderModule(AnalyzerSettings analyzerSettings)
 {
     AnalyzerSettings = analyzerSettings;
 }
コード例 #2
0
ファイル: StartUp.cs プロジェクト: PetersonDave/Andover
 public static SystemSettings GetSystemSettings(AnalyzerSettings analyzerSettings)
 {
     var provider = new ProviderModule(analyzerSettings);
     return provider.GetSystemSettings();
 }
コード例 #3
0
ファイル: Analysis.aspx.cs プロジェクト: PetersonDave/Andover
        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;
        }