Skip to content

Commit 9994c6d

Browse files
committed
README updated
1 parent f50a128 commit 9994c6d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)