namespace StockSharp.Messages; /// /// Base class for messages controlling the connection. /// /// /// Initializes a new instance of the . /// /// Message type. public abstract class BaseConnectionControlMessage(MessageTypes type) : Message(type), IServerTimeMessage { /// /// Determines a state should be reset. /// public bool IsResetState { get; set; } /// public override string ToString() => $"{base.ToString()},R={IsResetState}"; DateTime IServerTimeMessage.ServerTime { get => LocalTime; set => LocalTime = value; } /// /// Copy the message into the . /// /// The object, to which copied information. /// The object, to which copied information. protected BaseConnectionControlMessage CopyTo(BaseConnectionControlMessage destination) { base.CopyTo(destination); destination.IsResetState = IsResetState; return destination; } }