Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Check .Observed before logging UnobservedTaskException #131

Conversation

polyakrecords
Copy link
Contributor

The goal of this PR is to fix an issue TaskException is sent even if it is marked as Observed


TaskScheduler.UnobservedTaskException += (sender, e) =>
{
if (!e.Observed)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that check always false? Should we approve #112 instead?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. This one looks better to me. It uses a predefined standard api and allows filter exceptions individually.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Ivan here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants