Exemple #1
0
        /// <summary>
        /// Copy the message into the <paramref name="destination" />.
        /// </summary>
        /// <param name="destination">The object, to which copied information.</param>
        /// <returns>The object, to which copied information.</returns>
        protected StrategyInfoMessage CopyTo(StrategyInfoMessage destination)
        {
            base.CopyTo(destination);

            destination.StrategyName = StrategyName;
            destination.StrategyId   = StrategyId;
            destination.Parameters.AddRange(Parameters);
            destination.OriginalTransactionId = OriginalTransactionId;

            return(destination);
        }
Exemple #2
0
        /// <summary>
        /// Copy the message into the <paramref name="destination" />.
        /// </summary>
        /// <param name="destination">The object, to which copied information.</param>
        /// <returns>The object, to which copied information.</returns>
        protected StrategyInfoMessage CopyTo(StrategyInfoMessage destination)
        {
            destination.StrategyName          = StrategyName;
            destination.StrategyId            = StrategyId;
            destination.Parameters            = Parameters.ToDictionary();
            destination.OriginalTransactionId = OriginalTransactionId;

            this.CopyExtensionInfo(destination);

            return(destination);
        }