Ejemplo n.º 1
0
 /// <summary>
 /// Преобразовать <see cref="OrderPairReplaceMessage"/> в <see cref="ExecutionMessage"/>.
 /// </summary>
 /// <param name="message"><see cref="OrderPairReplaceMessage"/></param>
 /// <returns><see cref="ExecutionMessage"/></returns>
 public static ExecutionMessage ToExecutionMessage(this OrderPairReplaceMessage message)
 {
     throw new NotImplementedException();
     //return new ExecutionMessage
     //{
     //	LocalTime = message.LocalTime,
     //	OriginalTransactionId = message.TransactionId,
     //	Action = ExecutionActions.Canceled,
     //};
 }
        /// <summary>
        /// Create a copy of <see cref="OrderPairReplaceMessage"/>.
        /// </summary>
        /// <returns>Copy.</returns>
        public override Message Clone()
        {
            var clone = new OrderPairReplaceMessage
            {
                Message1 = (OrderReplaceMessage)Message1?.Clone(),
                Message2 = (OrderReplaceMessage)Message2?.Clone(),
            };

            CopyTo(clone);

            return(clone);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Создать копию объекта <see cref="OrderPairReplaceMessage"/>.
        /// </summary>
        /// <returns>Копия.</returns>
        public override Message Clone()
        {
            var clone = new OrderPairReplaceMessage
            {
                LocalTime = LocalTime,
                Message1  = Message1.CloneNullable(),
                Message2  = Message2.CloneNullable(),
            };

            CopyTo(clone);

            return(clone);
        }
Ejemplo n.º 4
0
		/// <summary>
		/// Создать копию объекта <see cref="OrderPairReplaceMessage"/>.
		/// </summary>
		/// <returns>Копия.</returns>
		public override Message Clone()
		{
			var clone = new OrderPairReplaceMessage
			{
				LocalTime = LocalTime,
				Message1 = Message1.CloneNullable(),
				Message2 = Message2.CloneNullable(),
			};

			CopyTo(clone);

			return clone;
		}