Blazor Wasm server-hosted project with routing on the client #4717
              
                Unanswered
              
          
                  
                    
                      ecaldentey
                    
                  
                
                  asked this question in
                Questions
              
            Replies: 1 comment 2 replies
-
| 
         I honestly don't understand what you are asking. I don't think CSLA has anything to do with this at all - it seems like you are asking about Blazor routing and styling, which CSLA won't affect.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    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.
-
Hello Rocky,
I would like to know if it's possible for CSLA to work in a server-hosted Blazor WebAssembly project, but where the control of page routing (App.razor), the definition of static files and JavaScripts (index.html), and the management of styles (app.css) are defined in the client project?
The architecture I currently have working is a server-hosted Wasm project with CSLA 8.2.2, but with page routing (Routes.razor), the definition of static files and JavaScripts (App.razor), and style management (app.css) on the server, and it works perfectly.
In fact, in the server project's root, I have the ActiveCircuitHandler service defined, which is loaded in the server's Program.cs and uses the ActiveCircuitState class defined in the client project. This means this architecture requires a reference from the server project to the client project, which should also be possible to implement in the architecture I need.
I need to use the architecture with control in the client project because I have some components that work with this architecture and fail when the routing is on the server, as they cannot route properly to make requests to the controller.
I look forward to your help.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions