Class Operation
Represents service operation.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class Operation : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Operation>
Constructors
Operation()
Initializes a new instance of the Operation object.
Declaration
public Operation()
Properties
ContractId
Gets or sets identifier of the contract this operation belongs to.
Declaration
public int ContractId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Description
Gets or sets operation description.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
DownstreamContractId
Gets or sets identifier of the downstream service contract which operation will be called. This property is populated for virtual services only.
Declaration
public int? DownstreamContractId { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
DownstreamOperationId
Gets or sets identifier of the downstream service operation that will be called by virtual service. This property is populated for virtual services only.
Declaration
public int? DownstreamOperationId { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
ExchangePattern
Gets or sets message exchange scenario this operation employs.
Declaration
public MessageExchangePattern ExchangePattern { get; set; }
Property Value
Type | Description |
---|---|
MessageExchangePattern |
IsCallback
Gets flag indicating that operation is initiated by the service.
Declaration
public bool IsCallback { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsDeprecated
Gets or sets flag indicating that operation is deprecated.
Declaration
public bool IsDeprecated { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsEnabled
Gets or sets flag indicating that operation is enabled and exposed by the runtime. This property applies only to virtual service operations.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsPublished
Gets or sets flag indicating that operation is published in service metadata.
Declaration
public bool IsPublished { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsSecured
Gets flag indicating that operation requires secured binding.
Declaration
public bool IsSecured { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsSessionInitiating
Gets or sets flag indicating that operation starts new session between client and service instance.
Declaration
public bool IsSessionInitiating { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsSessionTerminating
Gets or sets flag indicating that operation terminates session between client and service instance.
Declaration
public bool IsSessionTerminating { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsStatic
Gets or sets flag indicating that operation returns a pre-defined static response message instead of making a call to the downstream service. This property applies only to virtual service operations.
Declaration
public bool IsStatic { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
MessageProcessing
Gets or sets the message processing configuration.
Declaration
public MessagePipeline MessageProcessing { get; set; }
Property Value
Type | Description |
---|---|
MessagePipeline |
Name
Gets or sets operation name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
Type | Description |
---|---|
EntityType |
Overrides
ProtectionLevel
Gets or sets operation protection requirement.
Declaration
public ProtectionLevel? ProtectionLevel { get; set; }
Property Value
Type | Description |
---|---|
Nullable<ProtectionLevel> |
TransactionFlow
Gets or sets value indicating transaction flow policy for service operation.
Declaration
public TransactionFlowOption TransactionFlow { get; set; }
Property Value
Type | Description |
---|---|
TransactionFlowOption |
Methods
CheckMessageSamples(ICollection<MessageSample>)
Checks if this operation is static and that it has all required message samples
in the provided samples
collection.
Declaration
public void CheckMessageSamples(ICollection<MessageSample> samples)
Parameters
Type | Name | Description |
---|---|---|
ICollection<MessageSample> | samples | Collection of messages samples applied to the service version. |
Equals(Operation)
Determines whether the specified operation is equal to the current operation.
Declaration
public bool Equals(Operation other)
Parameters
Type | Name | Description |
---|---|---|
Operation | other | The operation to compare with the current operation. |
Returns
Type | Description |
---|---|
Boolean | True, if operations are equal. False, if operations 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 |
---|---|
Boolean | 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 |
---|---|
Int32 | Hash code of the current instance. |
Overrides
IsMatch(Operation, Operation)
Returns flag indicating that provided instances represent the same entity, i.e. the object's natural keys are the same. This method assumes that both instances are assigned to the same parent object.
Declaration
public static bool IsMatch(Operation operation1, Operation operation2)
Parameters
Type | Name | Description |
---|---|---|
Operation | operation1 | First instance to be compared. |
Operation | operation2 | Second instance to be compared. |
Returns
Type | Description |
---|---|
Boolean | True, if provided instances represent the same entity. False, otherwise. |
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 |
---|---|
Boolean | True if state is valid; otherwise, false. |