Class Message
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
A message containing market data or command.
[DataContract]
public abstract class Message : Cloneable<Message>, IMessage, ILocalTimeMessage, ICloneable
- Inheritance
-
Message
- Implements
- Derived
- Extension Methods
Constructors
Message(MessageTypes)
Initialize Message.
protected Message(MessageTypes type)
Parameters
type
MessageTypesMessage type.
Properties
Adapter
Source adapter. Can be null.
public IMessageAdapter Adapter { get; set; }
Property Value
BackMode
Back mode.
public MessageBackModes BackMode { get; set; }
Property Value
Forced
public bool Forced { get; set; }
Property Value
IsBack
Is loopback message.
[Obsolete("Use BackMode property.")]
public bool IsBack { get; set; }
Property Value
LocalTime
Local timestamp when a message was received/created.
[Display(ResourceType = typeof(LocalizedStrings), Name = "LocalTime", Description = "LocalTimeDesc", GroupName = "General")]
[DataMember]
public DateTimeOffset LocalTime { get; set; }
Property Value
OfflineMode
Offline mode handling message.
public MessageOfflineModes OfflineMode { get; set; }
Property Value
Type
Message type.
public MessageTypes Type { get; }
Property Value
Methods
Clone()
Create a copy of Message.
public override abstract Message Clone()
Returns
- Message
Copy.
CopyTo(Message)
Copy the message into the destination
.
protected void CopyTo(Message destination)
Parameters
destination
MessageThe object, to which copied information.
ToString()
public override string ToString()