本文整理汇总了C#中IConfig.GetOrderProvider方法的典型用法代码示例。如果您正苦于以下问题:C# IConfig.GetOrderProvider方法的具体用法?C# IConfig.GetOrderProvider怎么用?C# IConfig.GetOrderProvider使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IConfig
的用法示例。
在下文中一共展示了IConfig.GetOrderProvider方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Add
public void Add(IConfig config)
{
columns.AddRange(config.GetColumns());
exporters.AddRange(config.GetExporters());
loggers.AddRange(config.GetLoggers());
diagnosers.AddRange(config.GetDiagnosers());
analysers.AddRange(config.GetAnalysers());
jobs.AddRange(config.GetJobs());
validators.AddRange(config.GetValidators());
orderProvider = config.GetOrderProvider() ?? orderProvider;
KeepBenchmarkFiles |= config.KeepBenchmarkFiles;
}
示例2: Summary
public Summary(string title, IList<BenchmarkReport> reports, HostEnvironmentInfo hostEnvironmentInfo, IConfig config, string resultsDirectoryPath, TimeSpan totalTime, ValidationError[] validationErrors)
: this(title, hostEnvironmentInfo, config, resultsDirectoryPath, totalTime, validationErrors)
{
Benchmarks = reports.Select(r => r.Benchmark).ToArray();
foreach (var report in reports)
reportMap[report.Benchmark] = report;
Reports = Benchmarks.Select(b => reportMap[b]).ToArray();
var orderProvider = config.GetOrderProvider() ?? DefaultOrderProvider.Instance;
Benchmarks = orderProvider.GetSummaryOrder(Benchmarks, this).ToArray();
Reports = Benchmarks.Select(b => reportMap[b]).ToArray();
TimeUnit = TimeUnit.GetBestTimeUnit(reports.Where(r => r.ResultStatistics != null).Select(r => r.ResultStatistics.Mean).ToArray());
Table = new SummaryTable(this);
shortInfos = new Dictionary<IJob, string>();
jobs = new Lazy<IJob[]>(() => Benchmarks.Select(b => b.Job).ToArray());
}