Line data Source code
1 : using System;
2 : using System.Runtime.Serialization;
3 :
4 : namespace Cqrs.Services
5 : {
6 : [Serializable]
7 : [DataContract]
8 : public class ServiceResponseWithResultData<TResultData> : ServiceResponse, IServiceResponseWithResultData<TResultData>, IVersionedServiceResponse
9 0 : {
10 : [DataMember]
11 : public TResultData ResultData { get; set; }
12 :
13 0 : public ServiceResponseWithResultData()
14 : {
15 : }
16 :
17 0 : public ServiceResponseWithResultData(TResultData resultData)
18 : {
19 : State = ServiceResponseStateType.Succeeded;
20 : ResultData = resultData;
21 : }
22 :
23 : [DataMember]
24 : public double Version { get; set; }
25 : }
26 : }
|