Table of Contents

Class TwimeMessageAdapter

Namespace
StockSharp.Twime
Assembly
StockSharp.Twime.dll

The message adapter for StockSharp.Twime.

[MediaIcon("Moex_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Twime", Description = "StockConnector", GroupName = "Russia")]
[MessageAdapterCategory(MessageAdapterCategories.Russia|MessageAdapterCategories.RealTime|MessageAdapterCategories.Transactions)]
public class TwimeMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ILoginPasswordAdapter, IAddressAdapter<EndPoint>
Inheritance
TwimeMessageAdapter
Implements
ICloneable<IMessageChannel>
IPersistable
Inherited Members
Extension Methods

Constructors

TwimeMessageAdapter(IdGenerator)

Создать TwimeMessageAdapter.

public TwimeMessageAdapter(IdGenerator transactionIdGenerator)

Parameters

transactionIdGenerator IdGenerator

Генератор идентификаторов транзакций.

Fields

DefaultHeartbeatInterval

Default value for HeartbeatInterval.

public static readonly TimeSpan DefaultHeartbeatInterval

Field Value

TimeSpan

Properties

Dialect

Dialect.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Dialect", Description = "Dialect", GroupName = "Connection", Order = 0)]
public Dialects Dialect { get; set; }

Property Value

Dialects

FeatureName

Feature name.

public override string FeatureName { get; }

Property Value

string

IsNativeIdentifiers

Identify security in messages by native identifier Native.

public override bool IsNativeIdentifiers { get; }

Property Value

bool

Login

Login.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Login", Description = "LoginDot", GroupName = "Connection", Order = 3)]
public string Login { get; set; }

Property Value

string

Password

Password.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Password", Description = "PasswordDot", GroupName = "General", Order = 4)]
public SecureString Password { get; set; }

Property Value

SecureString

PortfolioName

Portfolio name.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Portfolio", Description = "PortfolioName", GroupName = "Connection", Order = 4)]
public string PortfolioName { get; set; }

Property Value

string

RecoveryAddress

Recovery server address. By default is 91.208.232.244:9001.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Recovery", Description = "RecoveryServerDot", GroupName = "Connection", Order = 2)]
public EndPoint RecoveryAddress { get; set; }

Property Value

EndPoint

StorageName

The storage name, associated with the adapter.

public override string StorageName { get; }

Property Value

string

TransactionAddress

Transactional server address. By default is 91.208.232.244:9000.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Address", Description = "ServerAddressDot", GroupName = "Connection", Order = 1)]
public EndPoint TransactionAddress { get; set; }

Property Value

EndPoint

Methods

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnSendInMessage(Message)

Send message.

protected override bool OnSendInMessage(Message message)

Parameters

message Message

Message.

Returns

bool

true if the specified message was processed successfully, otherwise, false.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ToString()

public override string ToString()

Returns

string