Exemplo n.º 1
0
 internal MockAgentTimer(string dbgName = null, IApmLogger logger = null)
 {
     WhenStarted = new AgentTimeInstant(this, TimeSpan.Zero);
     Now         = WhenStarted;
     _dbgName    = dbgName ?? "#" + RuntimeHelpers.GetHashCode(this).ToString("X");
     _logger     = logger == null ? (IApmLogger) new NoopLogger() : LoggingExtensions.Scoped(logger, $"{ThisClassName}-{_dbgName}");
 }