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 => {
5050});
5151
5252// 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 ();
5654
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 >();
5960```
6061#### Startup Configure
6162``` csharp
You can’t perform that action at this time.
0 commit comments