示例#1
0
        /// <summary>
        /// Generates a clone of this message instance, generating a new
        /// <see cref="Msg._MsgID" /> property if the original ID is
        /// not empty.
        /// </summary>
        /// <returns>The cloned message.</returns>
        public override Msg Clone()
        {
            DeliveryMsg clone;

            clone = new DeliveryMsg(Stub.Param);
            clone.CopyBaseFields(this, true);

            clone.query    = this.query;
            clone.response = this.response;

            return(clone);
        }
示例#2
0
        /// <summary>
        /// Constructs an instance by copying the appropriate fields from
        /// the delivery confirmation message passed.
        /// </summary>
        public DeliveryConfirmation(DeliveryMsg msg)
        {
            Assertion.Test(msg.Operation == DeliveryOperation.Confirmation);

            this.Timestamp     = msg.Timestamp;
            this.TargetEP      = msg.TargetEP;
            this.Query         = msg.Query;
            this.TopologyID    = msg.TopologyID;
            this.TopologyInfo  = msg.TopologyInfo;
            this.TopologyParam = msg.TopologyParam;
            this.Exception     = msg.Exception;
            this.Response      = msg.Response;
            this.State         = null;
        }