Esempio n. 1
0
        /// <summary>
        /// Create a new generic eMIP response.
        /// </summary>
        /// <param name="Request">The eMIP request leading to this result.</param>
        /// <param name="TransactionId">A transaction identification.</param>
        /// <param name="RequestStatus">The status of the request.</param>
        /// <param name="HTTPResponse">The correlated HTTP response of this eMIP response.</param>
        /// <param name="CustomData">Optional additional customer-specific data.</param>
        protected AResponse(TRequest Request,
                            Transaction_Id TransactionId,
                            RequestStatus RequestStatus,
                            HTTPResponse HTTPResponse = null,
                            IReadOnlyDictionary <String, Object> CustomData = null)

            : this(Request,
                   TransactionId,
                   RequestStatus,
                   DateTime.UtcNow,
                   HTTPResponse,
                   CustomData)

        {
        }
Esempio n. 2
0
        /// <summary>
        /// Create a new generic eMIP response.
        /// </summary>
        /// <param name="Request">The eMIP request leading to this result.</param>
        /// <param name="TransactionId">A transaction identification.</param>
        /// <param name="RequestStatus">The status of the request.</param>
        /// <param name="ResponseTimestamp">The timestamp of the response creation.</param>
        /// <param name="HTTPResponse">The correlated HTTP response of this eMIP response.</param>
        /// <param name="CustomData">Optional additional customer-specific data.</param>
        protected AResponse(TRequest Request,
                            Transaction_Id TransactionId,
                            RequestStatus RequestStatus,
                            DateTime?ResponseTimestamp = null,
                            HTTPResponse HTTPResponse  = null,
                            IReadOnlyDictionary <String, Object> CustomData = null)

            : base(CustomData)

        {
            this.Request           = Request;
            this.TransactionId     = TransactionId;
            this.RequestStatus     = RequestStatus;
            this.ResponseTimestamp = ResponseTimestamp ?? DateTime.UtcNow;
            this.HTTPResponse      = HTTPResponse;
        }