示例#1
0
 private static StopwatchBlock Get(string blockId)
 {
     if (!Blocks.ContainsKey(blockId))
     {
         Blocks[blockId] = new StopwatchBlock(blockId);
     }
     return(Blocks[blockId]);
 }
示例#2
0
 public DependencyCall(ITelemetry telemetry, string dependencyTypeName, string dependencyName, string data, DependencyCallDefaultStatus defaultStatus)
 {
     _telemetry          = telemetry;
     _dependencyTypeName = dependencyTypeName;
     _dependencyName     = dependencyName;
     _data           = data;
     _defaultStatus  = defaultStatus;
     _stopwatchBlock = new StopwatchBlock();
 }