Table of Contents

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 MessageTypes

Message type.

Properties

Adapter

Source adapter. Can be null.

public IMessageAdapter Adapter { get; set; }

Property Value

IMessageAdapter

BackMode

Back mode.

public MessageBackModes BackMode { get; set; }

Property Value

MessageBackModes

IsBack

Is loopback message.

[Obsolete("Use BackMode property.")]
public bool IsBack { get; set; }

Property Value

bool

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

DateTimeOffset

OfflineMode

Offline mode handling message.

public MessageOfflineModes OfflineMode { get; set; }

Property Value

MessageOfflineModes

Type

Message type.

public MessageTypes Type { get; }

Property Value

MessageTypes

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 Message

The object, to which copied information.

ToString()

public override string ToString()

Returns

string