In a Blazor Hybrid app, where exactly is the IJSRuntime dependency registered in the app startup? #20192
Unanswered
egvijayanand
asked this question in
Q&A
Replies: 1 comment 1 reply
-
In a Blazor Hybrid app WebViewJSRuntime is registered with AddBlazorWebView extension method https://github.com/dotnet/aspnetcore/blob/main/src/Components/WebView/WebView/src/ComponentsWebViewServiceCollectionExtensions.cs#L26 which is called from AddMauiBlazorWebView extension method https://github.com/dotnet/maui/blob/main/src/BlazorWebView/src/SharedSource/BlazorWebViewServiceCollectionExtensions.cs#L37 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In a Blazor Hybrid app, where exactly is the IJSRuntime dependency registered in the app startup? I'm trying for the WinUI app. Framework trying to resolve the instance of it, but there's nothing registered.
In the documentation here, it's mentioned as a framework registered service. If that's the case, how it's handled in the Blazor Hybrid app?
@Eilon Your inputs are needed.
Beta Was this translation helpful? Give feedback.
All reactions