Class Binding
Represents a pre-configured endpoint binding.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class Binding : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Binding>, IFolderEntity
Constructors
Binding()
Instantiates empty Binding object.
Declaration
public Binding()
Binding(Binding)
Initializes new instance from provided Binding.
Declaration
public Binding(Binding binding)
Parameters
| Type | Name | Description |
|---|---|---|
| Binding | binding | Binding to be initialized from. |
Properties
Capabilities
Gets system tags describing the binding's capabilities.
Declaration
public string Capabilities { get; }
Property Value
| Type | Description |
|---|---|
| String |
Configuration
Gets or sets binding's private configuration.
Declaration
public string Configuration { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Description
Gets or sets binding description.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
FolderId
Gets or sets identifier of folder that binding belongs to.
Declaration
public int? FolderId { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable<Int32> |
FriendlyName
Gets or sets display name of the binding.
Declaration
public string FriendlyName { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
IsMajorObject
Gets the flag indicating that current object is a major entity.
Declaration
public override bool IsMajorObject { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Overrides
IsPrivate
Gets or sets flag telling that binding was automatically created during service registration process. If False, tells that binding was manually created and configured and can be reused. This property cannot be changed in an existing binding.
Declaration
public bool IsPrivate { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Name
Gets or sets binding name (WSDL).
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Namespace
Gets or sets binding namespace (WSDL).
Declaration
public string Namespace { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
| Type | Description |
|---|---|
| EntityType |
Overrides
QName
Gets binding's XML qualified name.
Declaration
public XmlQualifiedName QName { get; }
Property Value
| Type | Description |
|---|---|
| XmlQualifiedName |
Methods
ClearConfiguration()
Clears configuration and other sensitive information, so only binding's name is available.
Declaration
public void ClearConfiguration()
Clone(Boolean)
Creates and returns an exact copy of this object.
Declaration
public Binding Clone(bool exactCopy)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | exactCopy | Flag indicating that all properties including keys, identifiers, and time stamps must be cloned. |
Returns
| Type | Description |
|---|---|
| Binding | Exact copy of this object. |
Compress()
Clears unnecessary to runtime data to reduce message payload.
Declaration
public void Compress()
Equals(Binding)
Determines whether the specified binding is equal to the current binding.
Declaration
public bool Equals(Binding other)
Parameters
| Type | Name | Description |
|---|---|---|
| Binding | other | The binding to compare with the current binding. |
Returns
| Type | Description |
|---|---|
| Boolean | True, if bindings are equal. False, if bindings 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 a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String | A string that represents the current object. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
| Type | Description |
|---|---|
| Boolean | True if state is valid; otherwise, false. |