public static void IsTrue(bool condition, string formatString, params object[] args) { if (condition) { return; } var message = StringFormatter.Format(formatString, args); throw new InvalidOperationException(message); }
// bypass history de-duplication public static void LogFormatAlways(string format, params object[] args) { var result = StringFormatter.Format(format, args); LogAlways(result); }