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
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
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
public Binding Binding { get; set; }
Property Value
Type | Description |
---|---|
Binding |
DownstreamEndpointIdentities
Gets collection of the downstream endpoint identities applied to the outbound endpoint.
Declaration
public Collection<IdentityDefinitionBase> DownstreamEndpointIdentities { get; }
Property Value
Type | Description |
---|---|
Collection<IdentityDefinitionBase> |
Identities
Gets collection of endpoint identities.
Declaration
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
public bool IsPopulated { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
NodeName
Gets friendly name of the hosting node. Applied only to inbound endpoints of virtual services.
Declaration
public string NodeName { get; }
Property Value
Type | Description |
---|---|
String |
Properties
Gets collection of general properties assigned to the endpoint.
Declaration
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
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. |