Class ServiceVersion
Represents physical or virtual service.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
public class ServiceVersion : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<ServiceVersion>
Constructors
ServiceVersion()
Initializes a new instance of the Service object.
Declaration
public ServiceVersion()
Properties
BaseAddress
Gets or sets the relative base address of service endpoints. The value must be a string containing just digits and letters. This property applies only to virtual services.
Declaration
[DataMember]
public string BaseAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Service base address:
- uniquely identifies a host instance within a single node;
- used for physical endpoints and ignored for service bus endpoints;
- may include a path like "a/b/c";
- may end with an ".svc" extension like "a/b/c.svc", but may not include ".svc" in the middle like "a/b.svc/c";
- appends to the node base address together with ".svc" extension, if endpoint is hosted on a Mixed Transports Mode node. If service base address already ends with ".svc", the extra extension is not appended.
Examples
"SearchService", "SearchService.svc", "production/services/search.svc"
BehaviorId
Gets or sets the service behavior identifier this service uses.
Declaration
[DataMember(EmitDefaultValue = false)]
public int? BehaviorId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Description
Gets or sets service version description.
Declaration
[DataMember(EmitDefaultValue = false)]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FriendlyName
Gets or sets the service version friendly name.
Declaration
[DataMember]
public string FriendlyName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FullName
Gets the full friendly name of the service version that includes custom or standard version number.
Declaration
public string FullName { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsAccessKeyRequired
Gets or sets flag indicating that service requires an access key (API key) to be provided by the caller. Such service can only be used in a product that requires subscriptions. If set to false then service can be used in a product that does not require subscriptions or as a stand-alone service. This property applies to virtual service only.
Declaration
[DataMember(EmitDefaultValue = false)]
public bool IsAccessKeyRequired { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsEnabled
Gets or sets flag indicating that service version is enabled and exposed by the runtime. This property applies only to virtual services.
Declaration
[DataMember]
public bool IsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsHostable
Gets flag indicating that current state of the service version allows it to be hosted on a node or be invoked by another service.
Declaration
public bool IsHostable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSchemaFirst
Gets or sets flag indicating that service is manually designed from a set of schemas. If False then service is created from a WSDL.
Declaration
[DataMember]
public bool IsSchemaFirst { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LastUpdate
Gets timestamp of the latest service version update. The update includes any changes in the service objects or downstream services that require virtual service to be restarted.
Declaration
[DataMember]
public DateTime LastUpdate { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
MessageProcessing
Gets or sets the message processing pipeline configuration.
Declaration
[DataMember(EmitDefaultValue = false)]
public MessagePipeline MessageProcessing { get; set; }
Property Value
| Type | Description |
|---|---|
| MessagePipeline |
Name
Gets or sets the service name in WSDL (required for SOAP services).
Declaration
[DataMember(EmitDefaultValue = false)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Namespace
Gets or sets the service target namespace in WSDL (required for SOAP services).
Declaration
[DataMember(EmitDefaultValue = false)]
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 service version's XML qualified name.
Declaration
public XmlQualifiedName QName { get; }
Property Value
| Type | Description |
|---|---|
| XmlQualifiedName |
ServiceId
Gets or sets service id.
Declaration
[DataMember]
public int ServiceId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Settings
Gets service version advanced configuration settings. This property applies only to virtual services.
Declaration
[DataMember]
public ServiceVersionSettings Settings { get; }
Property Value
| Type | Description |
|---|---|
| ServiceVersionSettings |
Status
Gets or sets this version status.
Declaration
[DataMember]
public ServiceVersionStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| ServiceVersionStatus |
Version
Gets or sets the custom-defined version identifier.
Declaration
[DataMember(EmitDefaultValue = false)]
public string Version { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
VersionNumber
Gets service version number.
Declaration
[DataMember]
public int VersionNumber { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Equals(ServiceVersion)
Determines whether the specified service version is equal to the current service version.
Declaration
public bool Equals(ServiceVersion other)
Parameters
| Type | Name | Description |
|---|---|---|
| ServiceVersion | other | The service version to compare with the current service version. |
Returns
| Type | Description |
|---|---|
| bool | True, if service versions are equal. False, if service versions 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 |
|---|---|
| bool | 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 |
|---|---|
| int | 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 |
|---|---|
| bool | True if state is valid; otherwise, false. |
Overrides
Validate(bool, bool)
Evaluates the state of this object.
Declaration
public bool Validate(bool isVirtual, bool isSoap)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isVirtual | Flag indicating that validated service version belongs to a virtual service. |
| bool | isSoap | Flag indicating that validation is performed for SOAP service. |
Returns
| Type | Description |
|---|---|
| bool | True if state is valid; otherwise, false. |