Beispiel #1
0
 /// <inheritdoc />
 public void Track(ApdexOptions options, Action action)
 {
     using (_registry.Apdex(options, () => Advanced.BuildApdex(options)).NewContext())
     {
         action();
     }
 }
        public IApdex Track(ApdexOptions options)
        {
            if (options.WithReservoir != null)
            {
                return(Track(options, () => this.BuildApdex(options, options.WithReservoir())));
            }

            return(_registry.Apdex(options, () => this.BuildApdex(options)));
        }
Beispiel #3
0
        /// <inheritdoc />
        public void Track(ApdexOptions options, Action action)
        {
            var apdex = _registry.Apdex(
                options,
                () => _apdexBuilder.Build(options.Reservoir, options.ApdexTSeconds, options.AllowWarmup, _clock));

            using (apdex.NewContext())
            {
                action();
            }
        }
Beispiel #4
0
 /// <inheritdoc />
 public IApdex Instance <T>(ApdexOptions options, Func <T> builder)
     where T : IApdexMetric
 {
     return(_registry.Apdex(options, builder));
 }