/// <summary>
        /// Copy the message into the <paramref name="destination" />.
        /// </summary>
        /// <param name="destination">The object, to which copied information.</param>
        public override void CopyTo(RemoteFileMessage destination)
        {
            base.CopyTo(destination);

            destination.TransactionId = TransactionId;
            destination.Body          = Body;
            destination.SecurityId    = SecurityId;
            destination.FileDataType  = FileDataType?.TypedClone();
            destination.Date          = Date;
            destination.Format        = Format;
        }
Exemple #2
0
        /// <summary>
        /// Create a copy of <see cref="AvailableDataInfoMessage"/>.
        /// </summary>
        /// <returns>Copy.</returns>
        public override Message Clone()
        {
            var clone = new AvailableDataInfoMessage
            {
                SecurityId   = SecurityId,
                FileDataType = FileDataType?.TypedClone(),
                Date         = Date,
                Format       = Format,
            };

            CopyTo(clone);
            return(clone);
        }