mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-09-08 18:20:49 +00:00
Port
This commit is contained in:
@@ -217,7 +217,7 @@ internal sealed class EsiurWebSocketEndpoint
|
||||
{
|
||||
endPoint = null!;
|
||||
if (address is null
|
||||
|| port is <= IPEndPoint.MinPort or > IPEndPoint.MaxPort
|
||||
|| port is < IPEndPoint.MinPort or > IPEndPoint.MaxPort
|
||||
|| address.Equals(IPAddress.Any)
|
||||
|| address.Equals(IPAddress.IPv6Any)
|
||||
|| address.Equals(IPAddress.None)
|
||||
|
||||
@@ -260,10 +260,10 @@ using Esiur.Resource;
|
||||
var clientWarehouse = new Warehouse();
|
||||
|
||||
var service = await clientWarehouse.Get<IResource>(
|
||||
"ep://api.example.com/sys/service",
|
||||
"ep://api.example.com:443/sys/service",
|
||||
new EpConnectionContext
|
||||
{
|
||||
WebSocketUri = new Uri("wss://api.example.com/esiur"),
|
||||
WebSocketUri = new Uri("wss://api.example.com:443/esiur"),
|
||||
// Add the authentication mode, identity, and protocol required by the server.
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user