Beispiel #1
0
        private ICompetitionConfig CreateBenchmarkConfig(
            [NotNull] Type benchmarkType,
            ICompetitionConfig competitionConfig,
            CompetitionFeatures competitionFeatures)
        {
            // ReSharper disable once UseObjectOrCollectionInitializer
            var result = new ManualCompetitionConfig(
                competitionConfig ??
                CompetitionConfigFactory.FindFactoryAndCreate(benchmarkType, competitionFeatures));

            InitCompetitionConfigOverride(result);

            FixCompetitionConfig(result);

            return(result.AsReadOnly());
        }
Beispiel #2
0
 public static ICompetitionConfig CreateConfig(
     [CanBeNull] Assembly targetAssembly = null,
     [CanBeNull] CompetitionFeatures competitionFeatures = null) =>
 CompetitionConfigFactory.FindFactoryAndCreate(targetAssembly, competitionFeatures);
Beispiel #3
0
 public static ICompetitionConfig CreateConfig(
     [NotNull] Type benchmarkType,
     [CanBeNull] CompetitionFeatures competitionFeatures = null) =>
 CompetitionConfigFactory.FindFactoryAndCreate(benchmarkType, competitionFeatures);