DataObjects-NET / dataobjects-net

https://dataobjects.net
MIT License
60 stars 23 forks source link

Domain.OpenSessionInternalAsync: Prevent continuation if parent task was canceled #329

Closed alex-kulakov closed 11 months ago

alex-kulakov commented 11 months ago

Problem appeared in #291, in case of cancelled parent task of connection opening the exception which supposed to notify about cancellation became swallowed. Adding TaskContinuationOption.NotOnCanceled prevents continuation from happening and the exception is risen and passed to user code how it should be.