public static bool Success(this TryStartNewResult result) { switch (result) { case TryStartNewResult.Added: case TryStartNewResult.Queued: return true; default: //everything else means it was not added return false; } } }