Class NodeAddress
Represents a base address of "Sentinet" node.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class NodeAddress : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<NodeAddress>
Constructors
NodeAddress()
Initializes a new instance of the NodeAddress object.
Declaration
public NodeAddress()
NodeAddress(NodeAddress)
Initializes new instance from provided node base address.
Declaration
public NodeAddress(NodeAddress nodeAddress)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeAddress | nodeAddress | An existing instance to be initialized from. |
Properties
AbsoluteUri
Gets well-formatted, absolute, ending with slash base address. If address is invalid or not provided then Null will be returned.
Declaration
public Uri AbsoluteUri { get; }
Property Value
| Type | Description |
|---|---|
| Uri |
Address
Gets or sets the node's base address.
Declaration
public Uri Address { get; set; }
Property Value
| Type | Description |
|---|---|
| Uri |
Configuration
Gets or sets the additional configuration required by certain address kinds.
Declaration
public AzureSecurityConfiguration Configuration { get; set; }
Property Value
| Type | Description |
|---|---|
| AzureSecurityConfiguration |
Remarks
Currently this property is strongly typed to AzureSecurityConfiguration type. If storing more configurations is required, the property type can be changed to some generic type like Object.
Kind
Gets or sets the address kind like physical or cloud-based. Some kinds require an additional configuration.
Declaration
public NodeAddressKind Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| NodeAddressKind |
NodeId
Gets or sets identifier of the node this address belongs to.
Declaration
public int NodeId { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
| Type | Description |
|---|---|
| EntityType |
Overrides
Methods
Equals(NodeAddress)
Determines whether the specified node address is equal to the current address.
Declaration
public bool Equals(NodeAddress other)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeAddress | other | The node address to compare with the current address. |
Returns
| Type | Description |
|---|---|
| Boolean | True, if addresses are equal. False, if addresses are not equal. |
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 |
|---|---|
| Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 | Hash code of the current instance. |
Overrides
ToString()
Returns string representation of the object content.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String | String representation of the object content. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
| Type | Description |
|---|---|
| Boolean | True if state is valid; otherwise, false. |