标签: hangfire
我有一个Hangfire工作,在特定条件下会引发自定义HttpStatusCode.OK异常。
Hangfire
HttpStatusCode.OK
但是我不希望工作在这种情况下失败。
if (!te.HasVariables && !te.HasCountries) { throw new CustomHttpException(HttpStatusCode.OK, $"Data is empty for Countries."); }