Class ServiceDiscovery.ResolvedTarget
Inherited Members
Namespace: Akka.Discovery
Assembly: Akka.Discovery.dll
Syntax
public class ServiceDiscovery.ResolvedTarget : INoSerializationVerificationNeeded, IEquatable<ServiceDiscovery.ResolvedTarget>
Constructors
| Edit this page View SourceResolvedTarget(string, int?, IPAddress)
Resolved target host, with optional port and the IP address.
Declaration
public ResolvedTarget(string host, int? port = null, IPAddress address = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | host | The hostname or the IP address of the target. |
| int? | port | Optional port number. |
| IPAddress | address | Optional IP address of the target. This is used during cluster bootstrap when available. |
Properties
| Edit this page View SourceAddress
Declaration
public IPAddress Address { get; }
Property Value
| Type | Description |
|---|---|
| IPAddress |
Host
Declaration
public string Host { get; }
Property Value
| Type | Description |
|---|---|
| string |
Port
Declaration
public int? Port { get; }
Property Value
| Type | Description |
|---|---|
| int? |
Methods
| Edit this page View SourceEquals(ResolvedTarget)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ServiceDiscovery.ResolvedTarget other)
Parameters
| Type | Name | Description |
|---|---|---|
| ServiceDiscovery.ResolvedTarget | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Edit this page