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
Properties
Dialect
Dialect.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Dialect", Description = "Dialect", GroupName = "Connection", Order = 0)]
public Dialects Dialect { get; set; }
Property Value
FeatureName
Feature name.
public override string FeatureName { get; }
Property Value
IsNativeIdentifiers
Identify security in messages by native identifier Native.
public override bool IsNativeIdentifiers { get; }
Property Value
Login
Login.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Login", Description = "LoginDot", GroupName = "Connection", Order = 3)]
public string Login { get; set; }
Property Value
Password
Password.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Password", Description = "PasswordDot", GroupName = "General", Order = 4)]
public SecureString Password { get; set; }
Property Value
PortfolioName
Portfolio name.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Portfolio", Description = "PortfolioName", GroupName = "Connection", Order = 4)]
public string PortfolioName { get; set; }
Property Value
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
StorageName
The storage name, associated with the adapter.
public override string StorageName { get; }
Property Value
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
Methods
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()