开发者

Why does the application still stop after setting the BackgroundService Exception Behavior.Ignore option?

In asp.net core 6, I set an option so that when an exception occurs, the application does not stop services.Configure(hostOptions => { hostOptions.BackgroundServiceExceptionBehavior = Back开发者_如何学运维groundServiceExceptionBehavior.Ignore; });

But it still stops, then starts itself. And nginx reverse proxy gives 502 error. What can be done here so that the application simply logs an error, but does not restart?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜