Class StaticResponseConfiguration
Represents a service version configuration related to providing static responses to operation requests without making outbound service calls.
Inheritance
System.Object
StaticResponseConfiguration
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class StaticResponseConfiguration : IValidator
Constructors
StaticResponseConfiguration()
Declaration
public StaticResponseConfiguration()
Properties
ErrorMessage
Gets the message indicating the errors found during validation process.
Declaration
public string ErrorMessage { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Operations
Gets collection of static operation identifiers.
Declaration
public Collection<int> Operations { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.ObjectModel.Collection<System.Int32> |
Responses
Gets collection of message samples to be used as static responses.
Declaration
public Collection<MessageSample> Responses { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.ObjectModel.Collection<MessageSample> |
ServiceVersionId
Gets or sets identifier of the service version this configuration is related to.
Declaration
public int ServiceVersionId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
Validate()
Evaluates the state of the object.
Declaration
public bool Validate()
Returns
| Type | Description |
|---|---|
| System.Boolean | True if state is valid; otherwise, false. |