Use new Blazor WebView2 abstractions #1181
Merged
+722
−103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In dotnet/aspnetcore#33125 I introduced new abstractions that allow sharing WebView2 code between WPF/WinForms and .NET MAUI. Eventually MAUI will use those abstractions, but we can't reference them from MAUI until Preview 6. So for now I've copied the abstractions from ASP.NET Core into MAUI so that the MAUI code can use the updated pattern. Then, in Preview 6, we can update the reference to ASP.NET Core and delete all the "SharedSource" files (that are 100% exact copies from ASP.NET Core).
So, no functional changes at all in this PR. Just refactoring code for .NET MAUI's WinUI implementation of BlazorWebView.