Initializes a new instance of the HostEndpoint class with the specified
host and port and adds a reference to itself as the only resolved endpoint.
Namespace: ININ.IceLib.ConnectionAssembly: ININ.IceLib (in ININ.IceLib.dll) Version: 0.0.0.0 (22.3.0.218)
Syntax
C# |
---|
public HostEndpoint( string host, int port, bool resolveToSelf ) |
Visual Basic |
---|
Public Sub New ( _ host As String, _ port As Integer, _ resolveToSelf As Boolean _ ) |
Parameters
- host
- Type: System..::..String
The host.
- port
- Type: System..::..Int32
The port.
- resolveToSelf
- Type: System..::..Boolean
if set to trueTruetruetrue (True in Visual Basic), resolve to self.
Remarks
This constructor may be used to initialize an instance of HostEndpoint that is known to resolve only to itself. Since ResolveEndpoint()()()() uses network-bound DNS operations, it is advantageous to create self-resolving endpoints when possible to reduce unnecessary network overhead.
This also serves to limit the number of unique instances of HostEndpoint.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | The host parameter string is empty. |
System..::..ArgumentNullException | The host parameter string is nullNothingnullptra null reference (Nothing in Visual Basic). |
System..::..ArgumentOutOfRangeException | The port parameter is less than 1 or greater than 65535. |
Version Information
Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.