Skip to content

Remove SafeSecurityHelperAvalon, move functionality to PresentationSource#9978

Open
h3xds1nz wants to merge 3 commits intodotnet:mainfrom
h3xds1nz:remove-securityhelper-avalon
Open

Remove SafeSecurityHelperAvalon, move functionality to PresentationSource#9978
h3xds1nz wants to merge 3 commits intodotnet:mainfrom
h3xds1nz:remove-securityhelper-avalon

Conversation

@h3xds1nz
Copy link
Member

@h3xds1nz h3xds1nz commented Oct 21, 2024

Description

One SecurityHelper file down, two to go.

This one was a partial class from SafeSecurityHelper, containing a simple wrapper for PresentationSource.FromVisual with a bool check. It was compiled unconditionally both into PresentationFramework and PresentationCore, though the functionality is not needed in both assemblies.

Also removed some obsolete CAS remarks in PresentationSource and used pattern matching in some places to simplify code.

Customer Impact

Decreased size of assemblies, cleaner code base for developers.

Regression

No.

Testing

Local build.

Risk

Low.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested review from a team as code owners October 21, 2024 18:28
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant