IdentityServer icon indicating copy to clipboard operation
IdentityServer copied to clipboard

EF: Consider handling OperationCanceledException instead of TaskCanceledException in UnhandledExceptionLoggingFilter

Open RolandGuijt opened this issue 5 months ago • 0 comments

OperationCanceledException could be the more appropriate exception to check for because some APIs just raise that.

See also: https://blog.stephencleary.com/2022/03/cancellation-3-detecting-cancellation.html#:~:text=And%20since%20TaskCanceledException%20derives%20from,Catch%20OperationCanceledException%20instead

And: https://github.com/DuendeSoftware/Support/issues/1377

RolandGuijt avatar Sep 09 '24 11:09 RolandGuijt