-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Add BaseAddress property to WebAssemblyHostEnvironment #20019
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
Add BaseAddress property to WebAssemblyHostEnvironment #20019
Conversation
src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly/src/Services/HttpClientServiceCollectionExtensions.cs
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationManager.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to see this getting fleshed out 👍
src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationManager.cs
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationManager.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostBuilder.cs
Show resolved
Hide resolved
@javiercn is this from the dev-cert tool? |
src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationManager.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic!
Added a couple of minor suggestions, but will leave it to you to decide what/if to do anything with them.
This is a great improvement!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
@javiercn and I spent some time debugging the failing As a result, a null-ref exception was thrown and navigating to any of the paths in the test suite resulted in a 404. This was not a problem before because the test suite was not expecting the base path to be validated on initialization. To resolve this issue, we updated the tests to use the correct base path on each route. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New changes look great!
* Restore public API contract on WebAssemblyJSRuntime (#19968) * Shrink icon-512.png (#19999) * Use custom DebugProxyHost to initialize DebugProxy config (#19980) Addresses #19909 * Spruce up WebAssemblyHostEnvironment interface and use (#20008) * Load .dlls/.wasm/.pdb in parallel with dotnet.*.js. Fixes #18898 (#20029) * Add BaseAddress property to WebAssemblyHostEnvironment (#20019) - Adds `BaseAddress` to `IWebAssemblyHostEnvironment` - Uses unmarshalled APIs to extract application host - Move NavigationManager initialization to startup code - Fix subdir mapping in ClientSideHostingTest Addresses #19910 Co-authored-by: Steve Sanderson <[email protected]> Co-authored-by: Safia Abdalla <[email protected]> Co-authored-by: Safia Abdalla <[email protected]>
Changes in this PR
BaseAddress
toIWebAssemblyHostEnvironment
Addresses #19910