Files
StockSharp/Messages/ConnectionLostMessage.cs
T
2024-10-29 20:22:20 +03:00

27 lines
747 B
C#

namespace StockSharp.Messages;
/// <summary>
/// Message indicating that the connection was lost and reconnection is in progress.
/// </summary>
/// <remarks>
/// Uses when the underlying <see cref="IMessageAdapter"/> controls the connection itself.
/// </remarks>
[DataContract]
[Serializable]
public class ConnectionLostMessage : BaseConnectionControlMessage
{
/// <summary>
/// Initializes a new instance of the <see cref="ConnectionLostMessage"/>.
/// </summary>
public ConnectionLostMessage()
: base(MessageTypes.ConnectionLost)
{
}
/// <summary>
/// Create a copy of <see cref="ConnectionLostMessage"/>.
/// </summary>
/// <returns>Copy.</returns>
public override Message Clone()
=> CopyTo(new ConnectionLostMessage());
}