BlazorDualMode icon indicating copy to clipboard operation
BlazorDualMode copied to clipboard

Still 2 code paths with Client/Server

Open aherrick opened this issue 5 years ago • 1 comments

Would love to be able to support Server side for debugging and client side for Production without having to have 2 code paths.

Additionally with this model how do debug the client side code when running in development?

I want my Blazor App + MVC to run on 1 App Service regardless of Client/Server side Blazor.

aherrick avatar Jun 25 '19 19:06 aherrick

There is a bit of plumbing code that is distinct between the client and server modes, namely the controller that makes the Weather Service impl available in client mode, but otherwise the code functions the same.

This is unavoidable, as you can't access server-side resources any other way (such as DB access or service calls that are server-side only).

ebekker avatar Jul 03 '19 19:07 ebekker