Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #224 #225

Merged
merged 2 commits into from
Feb 18, 2020
Merged

Fixes #224 #225

merged 2 commits into from
Feb 18, 2020

Conversation

PhyxionNL
Copy link
Contributor

No description provided.

@claassistantio
Copy link

claassistantio commented Feb 17, 2020

CLA assistant check
All committers have signed the CLA.

@ejsmith
Copy link
Member

ejsmith commented Feb 18, 2020

Thank you! I agree that this lib should not reference winforms. I haven’t dug in much yet, but should we be wiring up for unhandled exceptions in some other way? https://stackoverflow.com/questions/793100/globally-catch-exceptions-in-a-wpf-application

Copy link
Member

@niemyjski niemyjski left a comment

Choose a reason for hiding this comment

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

Can we put all this existing code against a Net45 existing compiler directive. I was thinking about this more, there are some wpf apps like our own that has winforms interop and bringing in a new client I think would be breaking.

@PhyxionNL
Copy link
Contributor Author

Thank you! I agree that this lib should not reference winforms. I haven’t dug in much yet, but should we be wiring up for unhandled exceptions in some other way? https://stackoverflow.com/questions/793100/globally-catch-exceptions-in-a-wpf-application

I think DispatcherUnhandledException is enough (along with base), but it's now using one static field so you can only use one client. I doubt there are many cases of people using multiple clients though. For now this change is enough for the issue, the other things can be done later if needed.

@niemyjski WPF shouldn't load the WinForms libraries just for ThreadException (only causes more assemblies to get loaded), and most WPF apps don't use WinForms.

@niemyjski
Copy link
Member

On full framework it doesn't really matter if WinForms is loaded does it? It's apart of the official runtime. I know our commercial app does both winforms and wpf and it's nice knowing both is covered. It would be nice knowing legacy full framework keeps on working and newer implementations (core) has an updated behavior.

@PhyxionNL
Copy link
Contributor Author

On full framework it doesn't really matter if WinForms is loaded does it? It's apart of the official runtime. I know our commercial app does both winforms and wpf and it's nice knowing both is covered. It would be nice knowing legacy full framework keeps on working and newer implementations (core) has an updated behavior.

It matters also for full framework because the WinForms assemblies must get loaded from disk, this is not necessary for most WPF application because they don't use WinForms. For applications that actually need a dependency on WinForms it would be as simple as adding Exceptionless.Windows and calling that one additional Register... method on the client (I've tried, it works). Or if that somehow would be too troublesome (doubt it) another platform could be added that combines these, but WinForms doesn't belong in WPF (WinForms doesn't do this for WPF either).

@niemyjski niemyjski merged commit 3058e5e into exceptionless:feature/net-core-wpf Feb 18, 2020
@niemyjski
Copy link
Member

Thanks for the PR!

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

Successfully merging this pull request may close these issues.

4 participants