Class OperationDefinition
Represents a service operation definition. This class is a part of service definition structure used for creating or updating service version within a single service call.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class OperationDefinition : Operation, IValidator, IExtensibleDataObject, IEquatable<Operation>
Constructors
OperationDefinition()
Instantiates an empty operation definition.
Declaration
public OperationDefinition()
OperationDefinition(Operation)
Initializes new instance from provided operation.
Declaration
public OperationDefinition(Operation operation)
Parameters
| Type | Name | Description |
|---|---|---|
| Operation | operation | Operation to be initialized from. |
OperationDefinition(OperationDescription)
Initializes new instance from provided operation description.
Declaration
public OperationDefinition(OperationDescription operation)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ServiceModel.Description.OperationDescription | operation | Operation description to be initialized from. |
Properties
IsPopulated
Gets or sets a flag indicating that operation properties are populated. If False, only downstream operation and downstream contract identifiers are populated and the rest of the properties must be read from the database.
Declaration
public bool IsPopulated { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Kind
Gets the kind of service (SOAP, REST, or OData) this operation belongs to. This property is NOT always populated.
Declaration
public ServiceKind? Kind { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<ServiceKind> |
Messages
Gets collection of messages which are parts of the service operation.
Declaration
public Collection<MessageDefinition> Messages { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.ObjectModel.Collection<MessageDefinition> |
Properties
Gets collection of general properties assigned to the operation.
Declaration
public Collection<Property> Properties { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.ObjectModel.Collection<Property> |
Methods
CopyFrom(Operation)
Populates current instance from provided operation.
Declaration
public void CopyFrom(Operation operation)
Parameters
| Type | Name | Description |
|---|---|---|
| Operation | operation | Operation to be populated from. |