Example #1
0
        internal static EngineSetup ConfigureFromRunInfo(this EngineSetup setup, RunInfoBase runInfo)
        {
            if (runInfo.SkipRosterFetch)
            {
                setup.SkipRosterFetch();
            }
            if (runInfo.SaveToDisk)
            {
                setup.SaveToDisk();
            }
            if (runInfo.SaveOriginalSourceFiles)
            {
                setup.SaveOriginalSourceFiles();
            }

            return(setup);
        }
Example #2
0
        private static FfdbEngine GetConfiguredEngine(EngineSetup setup)
        {
            setup
            .SetRootDataDirectoryPath(@"D:\Repos\ffdb_data_5\");
            //.SetRootDataDirectoryPath(@"D:\Repos\FFDB.Data\");

            setup.WebRequest
            .SetThrottle(3000)
            .AddDefaultBrowserHeaders();

            setup.Logging
            .SetLogDirectory(@"D:\Repos\ffdb_logs\")
            .SetRollingInterval(RollingInterval.Day)
            .UseDebugLogLevel();

            setup
            .SkipRosterFetch()
            .SaveToDisk()
            .SaveOriginalSourceFiles()
            .EnableFetchingFromDataRepo();

            return(setup.Create());
        }