Class NodeSettings
Defines a set of advanced configuration properties for a node.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class NodeSettings : IValidator, IEquatable<NodeSettings>, IExtensibleDataObject
Constructors
NodeSettings()
Initializes an empty instance.
Declaration
public NodeSettings()
Properties
ChangeMode
Gets or sets the way of how a running node applies a changed service configuration. In order to update an existing hosted service the node can either restart that service's host or recycle the whole ASP.NET application.
Declaration
public ConfigurationChangeMode ChangeMode { get; set; }
Property Value
Type | Description |
---|---|
ConfigurationChangeMode |
ClientAddressHeaderName
Gets or sets the name of the HTTP header providing the ultimate service caller IP address.
Declaration
public string ClientAddressHeaderName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Examples
"X-Forwarded-For" is a de facto standard for identifying the originating IP address of a client (http://en.wikipedia.org/wiki/X-Forwarded-For).
ClientAddressOptions
Gets or sets the special options for retrieving service caller IP address.
Declaration
public ClientAddressOptions ClientAddressOptions { get; set; }
Property Value
Type | Description |
---|---|
ClientAddressOptions |
ErrorMessage
Gets the summary of validation errors.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
ExtensionData
Gets or sets System.Runtime.Serialization.ExtensionDataObject that enables serialization roundtrips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Type | Description |
---|---|
System.Runtime.Serialization.ExtensionDataObject |
Methods
Equals(NodeSettings)
Determines whether the specified node settings are equal to the current node settings.
Declaration
public bool Equals(NodeSettings other)
Parameters
Type | Name | Description |
---|---|---|
NodeSettings | other | The node settings to compare with the current node settings. |
Returns
Type | Description |
---|---|
System.Boolean | True, if node settings are equal. False, if node settings 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 |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.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 |
---|---|
System.Int32 | Hash code of the current instance. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |