Files
StockSharp/Algo/SecurityRemoveMessage.cs
2024-08-19 00:08:27 +03:00

33 lines
708 B
C#

namespace StockSharp.Algo;
/// <summary>
/// The message, containing security id to remove.
/// </summary>
[DataContract]
[Serializable]
public class SecurityRemoveMessage : Message, ISecurityIdMessage
{
/// <summary>
/// Initializes a new instance of the <see cref="SecurityRemoveMessage"/>.
/// </summary>
public SecurityRemoveMessage()
: base(ExtendedMessageTypes.RemoveSecurity)
{
}
/// <inheritdoc />
[DataMember]
public SecurityId SecurityId { get; set; }
/// <summary>
/// Create a copy of <see cref="SecurityRemoveMessage"/>.
/// </summary>
/// <returns>Copy.</returns>
public override Message Clone()
{
return new SecurityRemoveMessage
{
SecurityId = SecurityId,
};
}
}