Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor Server service instance in WASM component

$
0
0

In my .NET 8 Blazor Web App with rendermode Auto I've been using server rendering so far. While trying out WASM I noticed I can't just inject server service instances. This is because it uses its own runtime (Porject.Client) with its own DI.

I can't create the service in the client because it's a wrapper to a performance demanding external executable.

I could of course make the service an API, but what would be the Blazor way of doing this?

To reduce WASM size and not expose the service code I already made an interface for it in the client.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>