Skip to content

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

Merged
alex-kulakov merged 1 commit intomasterfrom
async-session-opening-canceled-bug
Jul 28, 2023
Merged

Domain.OpenSessionInternalAsync: Prevent continuation if parent task was canceled#329
alex-kulakov merged 1 commit intomasterfrom
async-session-opening-canceled-bug

Conversation

@alex-kulakov
Copy link
Copy Markdown
Contributor

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.

otherwise OperationCanceledException will be swallowed
@alex-kulakov alex-kulakov merged commit 1041260 into master Jul 28, 2023
@alex-kulakov alex-kulakov deleted the async-session-opening-canceled-bug branch July 28, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant