Exemple #1
0
 public BaseMetricCall(string moduleName,
                       string className,
                       string methodName,
                       string tag,
                       ITimeLine timeLine)
 {
     _moduleName         = moduleName;
     _boundedTimeLine    = timeLine;
     _className          = className;
     _methodName         = methodName;
     _timePoint          = DateTime.Now;
     _tag                = tag;
     _metricResultStatus = (int)MetricResultStatus.Started;
     _callId             = Guid.NewGuid();
     //Collect Start Data
     _boundedTimeLine.CollectMetricResult(GetResult((int)MetricResultStatus.Started, _callId));
 }
Exemple #2
0
 public virtual void Stop()
 {
     _boundedTimeLine.CollectMetricResult(GetResult((int)MetricResultStatus.Stopped, _callId));
 }