Class EndpointDefinition
Represents a service endpoint. This class is a part of service definition structure used for creating or updating service version with single service call.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
public class EndpointDefinition : Endpoint, IValidator, IExtensibleDataObject, IEquatable<Endpoint>
Constructors
EndpointDefinition()
Instantiates an empty endpoint definition.
Declaration
public EndpointDefinition()
EndpointDefinition(Endpoint)
Initializes new instance from provided endpoint.
Declaration
public EndpointDefinition(Endpoint endpoint)
Parameters
| Type | Name | Description |
|---|---|---|
| Endpoint | endpoint | Endpoint to be initialized from. |
EndpointDefinition(ServiceEndpoint)
Initializes new instance from provided service endpoint description.
Declaration
public EndpointDefinition(ServiceEndpoint endpoint)
Parameters
| Type | Name | Description |
|---|---|---|
| ServiceEndpoint | endpoint | Service endpoint description to be used to populate new instance. |
Properties
Behavior
Gets or sets the properties of the endpoint behavior that will be used with this endpoint. Used only if BehaviorId property is not set.
Declaration
[DataMember(EmitDefaultValue = false)]
public Behavior Behavior { get; set; }
Property Value
| Type | Description |
|---|---|
| Behavior |
Binding
Gets or sets the properties of the binding that will be used with this endpoint. Used only if BindingId property is not set.
Declaration
[DataMember(EmitDefaultValue = false)]
public Binding Binding { get; set; }
Property Value
| Type | Description |
|---|---|
| Binding |
DownstreamEndpointIdentities
Gets collection of the downstream endpoint identities applied to the outbound endpoint.
Declaration
[DataMember]
public Collection<IdentityDefinitionBase> DownstreamEndpointIdentities { get; }
Property Value
| Type | Description |
|---|---|
| Collection<IdentityDefinitionBase> |
Identities
Gets collection of endpoint identities.
Declaration
[DataMember]
public Collection<IdentityDefinitionBase> Identities { get; }
Property Value
| Type | Description |
|---|---|
| Collection<IdentityDefinitionBase> |
IsPopulated
Gets or sets a flag indicating that endpoint properties are populated. If False, only downstream endpoint identifier is populated and the rest of the properties must be read from the database.
Declaration
[DataMember(EmitDefaultValue = false)]
public bool IsPopulated { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
NodeName
Gets friendly name of the hosting node. Applied only to inbound endpoints of virtual services.
Declaration
[DataMember(EmitDefaultValue = false)]
public string NodeName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Properties
Gets collection of general properties assigned to the endpoint.
Declaration
[DataMember]
public Collection<Property> Properties { get; }
Property Value
| Type | Description |
|---|---|
| Collection<Property> |
Methods
Compress()
Clears unnecessary to runtime data to reduce message payload.
Declaration
public void Compress()
CopyFrom(Endpoint)
Populates current instance from provided endpoint.
Declaration
public void CopyFrom(Endpoint endpoint)
Parameters
| Type | Name | Description |
|---|---|---|
| Endpoint | endpoint | Endpoint to be populated from. |
CreateBiztalkConfiguration()
Creates "&"-delimited endpoint configuration to be used with BizTalk Server dynamic send ports configured with WCF-Custom adapter. The configuration string includes binding and service identity.
Declaration
public string CreateBiztalkConfiguration()
Returns
| Type | Description |
|---|---|
| string | Endpoint configuration to be used with Biztalk dynamic send ports configured with WCF-Custom adapter. |
CreateClientEndpoint(ContractDescription)
Creates and configures client endpoint for the current inbound service endpoint.
Declaration
public ServiceEndpoint CreateClientEndpoint(ContractDescription contract)
Parameters
| Type | Name | Description |
|---|---|---|
| ContractDescription | contract | Contract description to be used for new endpoint. |
Returns
| Type | Description |
|---|---|
| ServiceEndpoint | Configured client endpoint that can be used for calling the current service endpoint. |
CreateClientEndpoint<T>()
Creates and configures client endpoint for the current inbound service endpoint.
Declaration
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public ServiceEndpoint CreateClientEndpoint<T>()
Returns
| Type | Description |
|---|---|
| ServiceEndpoint | Configured client endpoint that can be used for calling the current service endpoint. |
Type Parameters
| Name | Description |
|---|---|
| T | Contract type to be used for new endpoint. |