How to add endpoint dynamicly after startup #26170
              
                Unanswered
              
          
                  
                    
                      iplusMario
                    
                  
                
                  asked this question in
                General
              
            Replies: 1 comment
-
| It's not easy. You need to implement an EndpointDataSource like this example. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 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.
-
Is it possible to add new enpoint dynamicly after startup executed in AspNetCore?
Any suggestions how would you solve this particular problem which is simplified.
We are having a admin controller which can manage how many chat rooms are open.
Each chat room has its own WebSocket or Hub if singalr which is registered to his own endpoint ("/hub1", "/hub2", etc.).
So admin connects to controller calls action OpenChatRoom("/Hub3") in which it would need to registers new
endpoint "hub3" which uses websocket handler/middelware in runtime and does not need to restart asp net core app.
Beta Was this translation helpful? Give feedback.
All reactions