Class ServiceVersionDefinition
Represents a service version definition. 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 sealed class ServiceVersionDefinition : ServiceVersion, IValidator, IExtensibleDataObject, IEquatable<ServiceVersion>
Constructors
ServiceVersionDefinition()
Instantiates an empty service version definition.
Declaration
public ServiceVersionDefinition()
ServiceVersionDefinition(ServiceVersion)
Initializes new instance from provided service version.
Declaration
public ServiceVersionDefinition(ServiceVersion serviceVersion)
Parameters
Type | Name | Description |
---|---|---|
ServiceVersion | serviceVersion | Service version to be initialized from. |
Properties
Behavior
Gets or sets the properties of the service 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 |
Contracts
Gets collection of the service contracts.
Declaration
public Collection<ContractDefinition> Contracts { get; }
Property Value
Type | Description |
---|---|
Collection<ContractDefinition> |
EndpointGroups
Gets collection of the outbound endpoint groups.
Declaration
public Collection<EndpointGroupDefinition> EndpointGroups { get; }
Property Value
Type | Description |
---|---|
Collection<EndpointGroupDefinition> |
IsPopulated
Gets or sets a flag indicating that service version properties are populated.
Declaration
public bool IsPopulated { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
For "create" operations this property must be True. For "update" and "delete" operations only entity identifier is required. If entity is not populated then "update" operation on the entity properties is not performed, but children entities are processed as usual.
Nodes
Gets collection of nodes hosting service version endpoints. This property applies to virtual services only.
Declaration
public Collection<NodeDefinition> Nodes { get; }
Property Value
Type | Description |
---|---|
Collection<NodeDefinition> |
Properties
Gets collection of general properties assigned to the service version.
Declaration
public Collection<Property> Properties { get; }
Property Value
Type | Description |
---|---|
Collection<Property> |
References
Gets collection of declarative references, dependencies, or links between this service version and other entities.
Declaration
public Collection<EntityReference> References { get; }
Property Value
Type | Description |
---|---|
Collection<EntityReference> |
Methods
CopyFrom(ServiceVersion)
Populates current instance from provided service version.
Declaration
public void CopyFrom(ServiceVersion serviceVersion)
Parameters
Type | Name | Description |
---|---|---|
ServiceVersion | serviceVersion | Service version to be initialized from. |
RefreshFrom(ServiceVersionDefinition, Boolean)
Updates this service version and all underlying objects from the provided service version by copying the non-key properties.
Declaration
public void RefreshFrom(ServiceVersionDefinition serviceVersion, bool protectExistingEndpoints)
Parameters
Type | Name | Description |
---|---|---|
ServiceVersionDefinition | serviceVersion | Service version to be updated from. |
Boolean | protectExistingEndpoints | Flag indicating that existing physical endpoints and their corresponding outbound endpoints on virtual services should not be updated or deleted. This applies to endpoint addresses, bindings, and identities. |