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.