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?
精彩评论