protected internal BaseServiceResponsePayload(BaseServiceRequestPayload parentRequestPayload, ServiceResponseState state, Exception error = null) : base(parentRequestPayload.ServiceName) { ArgumentValidator.AssertNotNull(parentRequestPayload, "parentRequestPayload"); ParentRequestPayload = parentRequestPayload; Tag = parentRequestPayload.Tag; IsCustomService = parentRequestPayload.IsCustomService; ResponseState = state; ResponseError = error; }
/// <summary> /// Initializes a new instance of the <see cref="ServiceResponsePayload{T}" /> class. /// </summary> /// <param name="parentRequestPayload">The parent request payload.</param> /// <param name="data">The data.</param> /// <param name="state">The state.</param> /// <param name="error">The error.</param> public ServiceResponsePayload(IServiceRequestPayload parentRequestPayload, T data, ServiceResponseState state, Exception error = null) : base(parentRequestPayload, state, error) { ResponseData = data; }