Example #1
0
 /// <summary>
 /// Starts a time profiling scope for the specified key.
 /// </summary>
 /// <param name="aggregateKey">The key of the time aggregate we should be adding to while profiling</param>
 /// <param name="parentAggregator">The parent time aggregator</param>
 public TimeTrackerScope(string aggregateKey, IAggregateTimeTracker parentAggregator)
 {
     this.aggregateKey = aggregateKey;
     this.parentAggregator = parentAggregator;
     this.stopWatch = new Stopwatch();
     this.stopWatch.Start();
 }
Example #2
0
 /// <summary>
 /// Starts a time profiling scope for the specified key.
 /// </summary>
 /// <param name="aggregateKey">The key of the time aggregate we should be adding to while profiling</param>
 /// <param name="parentAggregator">The parent time aggregator</param>
 public TimeTrackerScope(string aggregateKey, IAggregateTimeTracker parentAggregator)
 {
     this.aggregateKey     = aggregateKey;
     this.parentAggregator = parentAggregator;
     this.stopWatch        = new Stopwatch();
     this.stopWatch.Start();
 }
 /// <summary>
 /// Monitored taxonomy service implementation
 /// </summary>
 /// <param name="decorated">The decorated object</param>
 /// <param name="timeTracker">The time tracking object</param>
 public MonitoredTaxonomyService(ITaxonomyService decorated, IAggregateTimeTracker timeTracker)
 {
     this.decorated = decorated;
     this.timeTracker = timeTracker;
 }
 /// <summary>
 /// Monitored taxonomy service implementation
 /// </summary>
 /// <param name="decorated">The decorated object</param>
 /// <param name="timeTracker">The time tracking object</param>
 public MonitoredTaxonomyService(ITaxonomyService decorated, IAggregateTimeTracker timeTracker)
 {
     this.decorated   = decorated;
     this.timeTracker = timeTracker;
 }