NBench.BenchmarkContext.BenchmarkContext C# (CSharp) Méthode

BenchmarkContext() public méthode

public BenchmarkContext ( Counter>.IReadOnlyDictionary counters, IBenchmarkTrace trace ) : System
counters Counter>.IReadOnlyDictionary
trace IBenchmarkTrace
Résultat System
        public BenchmarkContext(IReadOnlyDictionary<CounterMetricName, Counter> counters, IBenchmarkTrace trace)
        {
            Trace = trace;
            _counters = counters.ToDictionary(k => k.Key.CounterName, v => v.Value);
        }