Class Endpoint
Represents a service endpoint (service description port).
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class Endpoint : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Endpoint>
Constructors
Endpoint()
Initializes a new instance of the Endpoint object.
Declaration
public Endpoint()
Properties
BehaviorId
Gets or sets endpoint behavior identifier this endpoint uses.
Declaration
public int? BehaviorId { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable<Int32> |
BindingId
Gets or sets binding identifier this endpoint uses.
Declaration
public int BindingId { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
ContractId
Gets or sets contract identifier this endpoint exposes or consumes.
Declaration
public int ContractId { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Description
Gets or sets endpoint description.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
DownstreamEndpointId
Gets or sets identifier of the physical service endpoint that is called by this endpoint. This property is populated only for outbound endpoints of virtual services.
Declaration
public int? DownstreamEndpointId { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable<Int32> |
EndpointGroupId
Gets or sets cluster identifier this endpoint belongs to. This property is populated only for outbound endpoints of virtual services.
Declaration
public int? EndpointGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable<Int32> |
IsEnabled
Gets or sets flag indicating that endpoint is enabled and exposed by the runtime. This property applies only to inbound endpoints of virtual services.
Declaration
public bool IsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
IsHttpTransport
Gets flag indicating that endpoint uses HTTP-based transport.
Declaration
public bool IsHttpTransport { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
IsOutbound
Gets or sets flag indicating that endpoint is outbound (client) endpoint of virtual service.
Declaration
public bool IsOutbound { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
IsPublished
Gets or sets flag indicating that endpoint is published in service metadata. This property applies only to inbound endpoints of virtual services.
Declaration
public bool IsPublished { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
IsSynchronized
Gets or sets flag indicating that outbound endpoint's address and binding should be kept in sync with corresponding downstream endpoint. This property applies only to outbound endpoints of virtual services.
Declaration
public bool IsSynchronized { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
LogicalAddress
Gets or sets endpoint logical (WS-Addressing) address. This property is automatically populated with downstream endpoint logical address for outbound (client) endpoint.
Declaration
public Uri LogicalAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| Uri |
MonitoringType
Gets or sets value indicating the requested scope of the messages that will be monitored and reported to the console.
Declaration
public MonitoringType MonitoringType { get; set; }
Property Value
| Type | Description |
|---|---|
| MonitoringType |
Name
Gets or sets endpoint name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
NodeAddressId
Gets or sets identifier of the node's base address this endpoint is based on. This property is populated only for inbound endpoints of virtual services.
Declaration
public int? NodeAddressId { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable<Int32> |
NodeId
Gets or sets identifier of the node that hosts this endpoint. This property is populated only for inbound endpoints of virtual services.
Declaration
public int? NodeId { get; set; }
Property Value
| Type | Description |
|---|---|
| Nullable<Int32> |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
| Type | Description |
|---|---|
| EntityType |
Overrides
PhysicalAddress
Gets or sets endpoint physical address (listening uri or client via).
Declaration
public Uri PhysicalAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| Uri |
RecordingPoints
Gets or sets value indicating the places where inbound or outbound message should be recorded.
Declaration
public RecordingPoints RecordingPoints { get; set; }
Property Value
| Type | Description |
|---|---|
| RecordingPoints |
Methods
Equals(Endpoint)
Determines whether the specified endpoint is equal to the current endpoint.
Declaration
public bool Equals(Endpoint other)
Parameters
| Type | Name | Description |
|---|---|---|
| Endpoint | other | The endpoint to compare with the current endpoint. |
Returns
| Type | Description |
|---|---|
| Boolean | True, if endpoints are equal. False, if endpoints 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
IsMatch(Endpoint, Endpoint)
Returns flag indicating that provided instances represent the same entity, i.e. the object's natural keys are the same. This method assumes that both instances are assigned to the same parent object.
Declaration
public static bool IsMatch(Endpoint endpoint1, Endpoint endpoint2)
Parameters
| Type | Name | Description |
|---|---|---|
| Endpoint | endpoint1 | First instance to be compared. |
| Endpoint | endpoint2 | Second instance to be compared. |
Returns
| Type | Description |
|---|---|
| Boolean | True, if provided instances represent the same entity. False, otherwise. |
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. |