File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,13 @@ services.AddNativeWebSockets(options => {
50
50
});
51
51
52
52
// Client WebSocket - Proxy connections
53
- services .AddProxyWebSockets ()
54
- .Register <CustomWebSocketCommandInvocator >(connectorname , " localhost:7803" )
55
- .Register <AnotherEndpointWebSocketCommandInvocator >(connectorname , " localhost:5000" ); // Another endpoint registration, host address must be unique
53
+ var builder = services .AddProxyWebSockets ();
56
54
57
- // Add MVC framework services.
58
- services .AddMvc ();
55
+ var connectorname = $" TestWebApp-{Environment .MachineName }" ;
56
+ builder .Register <CustomWebSocketCommandInvocator >(connectorname , " localhost:7803" );
57
+
58
+ // Runtime context factory
59
+ builder .Register <AnotherEndpointWebSocketCommandInvocator , CustomInvocatorContextFactory >();
59
60
```
60
61
#### Startup Configure
61
62
``` csharp
You can’t perform that action at this time.
0 commit comments