Пример #1
0
 public override IInterceptor CreateInterceptor(IProxyRequest request)
 {
     if (timer == null)
     {
         MetricName     metricName = Utils.BuildName(request, Name, Absolute);
         MetricRegistry registry   = request.Context.Kernel.Get <MetricRegistry>();
         timer = registry.Timer(metricName);
     }
     return(new TimingInterceptor(timer));
 }