You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Select from the available endpoints, don't construct a new ServiceEndpoint object here
102
+
returnendpoints.FirstOrDefault(s=>s.Name==endpointName&&s.Online) // Get the endpoint with name matching the incoming request
110
103
??base.GetNegotiateEndpoint(context, endpoints); // Or fallback to the default behavior to randomly select one from primary endpoints, or fallback to secondary when no primary ones are online
111
104
}
112
105
}
@@ -129,6 +122,22 @@ services.AddSignalR()
129
122
});
130
123
```
131
124
125
+
`ServiceOptions.Endpoints` also supports hot-reload. The below sample code shows how to load connection strings from one configuration section and public URL exposed by [reverse proxies](./signalr-howto-reverse-proxy-overview.md) from another, and as long as configuration supports hot-reload, the endpoints could be updated on the fly.
// Select from the available endpoints, don't construct a new ServiceEndpoint object here
196
199
returnendpoints.FirstOrDefault(s=>s.Name==endpointName&&s.Online) // Get the endpoint with name matching the incoming request
197
200
??base.GetNegotiateEndpoint(context, endpoints); // Or fallback to the default behavior to randomly select one from primary endpoints, or fallback to secondary when no primary ones are online
0 commit comments