private static void OnTimedOperationCompleted(ILogger logger, TimedOperationContextData data)
 {
     logger.Write(data.LogLevel,
                  OperationCompletedMessage,
                  data.Identifier,
                  data.Duration.ToString("g"),
                  data.Duration.TotalMilliseconds.ToString("f3"));
 }
 private static void OnTimedOperationCompletedButExceededTimeout(ILogger logger, TimedOperationContextData data)
 {
     if (data.MaxDuration.HasValue)
     {
         logger.Write(data.LogLevel,
                      OperationCompletedButExceededTimeoutMessage,
                      data.Identifier,
                      data.Duration.ToString("g"),
                      data.Duration.TotalMilliseconds.ToString("f3"),
                      data.MaxDuration);
     }
     else
     {
         OnTimedOperationCompleted(logger, data);
     }
 }
 private static void OnTimedOperationFailed(ILogger logger, TimedOperationContextData data)
 {
     logger.Write(data.LogLevel, OperationFailedMessage, data.Identifier);
 }