mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 01:22:11 +00:00
ClientCode duplicated in ExecutionMessage, OrderMessage, PortfolioMessage, PositionChangeMessage; BrokerCode in ExecutionMessage and OrderMessage. Callers that needed the code had to switch over concrete types — introduce the interfaces and tag the classes so a single cast works.
13 lines
285 B
C#
13 lines
285 B
C#
namespace StockSharp.Messages;
|
|
|
|
/// <summary>
|
|
/// The interface describing a message with <see cref="ClientCode"/> property.
|
|
/// </summary>
|
|
public interface IClientCodeMessage
|
|
{
|
|
/// <summary>
|
|
/// Client code assigned by the broker.
|
|
/// </summary>
|
|
string ClientCode { get; set; }
|
|
}
|