private static void ThrowAndLog(string message) { Logger.Error(message); throw new InvalidOperationException(message); }