Class ServiceResponse
A response message envelope that holds request state and correlation information in response to using public API requests.
Inheritance
System.Object
ServiceResponse
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: Cqrs.Services
Assembly: Cqrs.dll
Syntax
[Serializable]
[DataContract]
public class ServiceResponse : IVersionedServiceResponse, IServiceResponse
Constructors
ServiceResponse()
Instantiate a new instance of the ServiceResponse class.
Declaration
public ServiceResponse()
Properties
CorrelationId
The correlation id used to group together events and notifications.
Declaration
[DataMember]
public Guid CorrelationId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Implements
State
The state of the request.
Declaration
[DataMember]
public ServiceResponseStateType State { get; set; }
Property Value
Type | Description |
---|---|
ServiceResponseStateType |
Implements
Version
The version of the data being returned
Declaration
[DataMember]
public double Version { get; set; }
Property Value
Type | Description |
---|---|
System.Double |