Skip to content

Fix #2739: OS check for platform specific event #2741

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

Merged
merged 1 commit into from
May 28, 2025

Conversation

BraedenLS
Copy link
Contributor

This is a simple issue in which a platform exclusive event is always being subscribed to regardless of platform. This first checks that it isn't one of the unsupported OS' defined for that event.

Also changed constructor's access modifier to protected because the class is abstract

@BraedenLS BraedenLS force-pushed the bugfix/android-exception branch from 6adc977 to 48f2401 Compare May 27, 2025 21:30
Copy link
Collaborator

@timcassell timcassell left a comment

Choose a reason for hiding this comment

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

Thanks @BraedenLS

@timcassell timcassell merged commit 8bf4623 into dotnet:master May 28, 2025
8 checks passed
@timcassell timcassell added this to the v0.15.1 milestone May 28, 2025
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.

System.PlatformNotSupportedException thrown in DisposeAtProcessTermination with Android
2 participants