Skip to content

[HybridWebView] Add support for async .NET methods#25967

Merged
mattleibow merged 4 commits intomainfrom
dev/hybridwebview-async-support
Jan 23, 2025
Merged

[HybridWebView] Add support for async .NET methods#25967
mattleibow merged 4 commits intomainfrom
dev/hybridwebview-async-support

Conversation

@mattleibow
Copy link
Copy Markdown
Member

@mattleibow mattleibow commented Nov 19, 2024

Description of Change

This PR makes the call from JS into .NET be able to support async methods (return Task or Task<T>)

This PR has a fair bit of things moving around because of the async and the fact that I wanted to make the code flow the same on all the platforms. The code was getting a bit nested, so I broke things out into methods.

Issues Fixed

Fixes #25968

@mattleibow mattleibow requested a review from a team as a code owner November 19, 2024 21:56
@mattleibow mattleibow requested review from Eilon, jsuarezruiz, rmarinho and tj-devel709 and removed request for jsuarezruiz and rmarinho November 19, 2024 21:56
@jfversluis jfversluis added the area-architecture Issues with code structure, SDK structure, implementation details label Dec 11, 2024
@HelloooJoe
Copy link
Copy Markdown

Any ETA when with this be available in .NET MAUI? Either in preview or other?

@mattleibow mattleibow self-assigned this Jan 13, 2025
@mattleibow mattleibow added this to the .NET 9 SR4 milestone Jan 13, 2025
@mattleibow mattleibow added area-controls-hybridwebview HybridWebView control and removed area-architecture Issues with code structure, SDK structure, implementation details labels Jan 13, 2025
@mattleibow mattleibow marked this pull request as draft January 13, 2025 15:18
@mattleibow mattleibow force-pushed the dev/hybridwebview-async-support branch 2 times, most recently from 714b204 to 68028a8 Compare January 13, 2025 19:26
@mattleibow mattleibow requested a review from Eilon January 13, 2025 19:26
@mattleibow mattleibow marked this pull request as ready for review January 13, 2025 19:27
@mattleibow mattleibow removed their assignment Jan 15, 2025
@mattleibow mattleibow changed the title Add support for async .NET methods [HybridWebView] Add support for async .NET methods Jan 15, 2025
@mattleibow mattleibow force-pushed the dev/hybridwebview-async-support branch from 68028a8 to a5ae2c2 Compare January 15, 2025 13:58
@mattleibow mattleibow force-pushed the dev/hybridwebview-async-support branch from a5ae2c2 to 56070a8 Compare January 17, 2025 20:58
@mattleibow
Copy link
Copy Markdown
Member Author

Test failures unrelated to this PR

@mattleibow mattleibow merged commit 6166a57 into main Jan 23, 2025
@mattleibow mattleibow deleted the dev/hybridwebview-async-support branch January 23, 2025 16:46
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-hybridwebview HybridWebView control

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Calling a .NET method that returns Task will throw

5 participants