SecurityNativeIdMessageAdapter
StockSharp.Algo
Security native id message adapter.
Inherits: MessageAdapterWrapper
Constructors
SecurityNativeIdMessageAdapter
public SecurityNativeIdMessageAdapter(IMessageAdapter innerAdapter, INativeIdStorageProvider storageProvider)
securityNativeIdMessageAdapter = SecurityNativeIdMessageAdapter(innerAdapter, storageProvider)
Initializes a new instance of the SecurityNativeIdMessageAdapter.
- innerAdapter
- The adapter, to which messages will be directed.
- storageProvider
- Security native identifier storage provider.
SecurityNativeIdMessageAdapter
public SecurityNativeIdMessageAdapter(IMessageAdapter innerAdapter, INativeIdStorageProvider storageProvider, ISecurityNativeIdManager manager)
securityNativeIdMessageAdapter = SecurityNativeIdMessageAdapter(innerAdapter, storageProvider, manager)
Initializes a new instance of the SecurityNativeIdMessageAdapter with a custom manager.
- innerAdapter
- The adapter, to which messages will be directed.
- storageProvider
- Security native identifier storage provider.
- manager
- Security native id manager.
Properties
StorageProvider
public INativeIdStorageProvider StorageProvider { get; }
value = securityNativeIdMessageAdapter.StorageProvider
Security native identifier storage provider.
Methods
Clone
public override IMessageAdapter Clone()
result = securityNativeIdMessageAdapter.Clone()
Create a copy of SecurityNativeIdMessageAdapter.
Returns: Copy.
Dispose
public override void Dispose()
securityNativeIdMessageAdapter.Dispose()
Disposes of items in the pool that implement IDisposable.
OnInnerAdapterNewOutMessageAsync
protected override ValueTask OnInnerAdapterNewOutMessageAsync(Message message, CancellationToken cancellationToken)
result = securityNativeIdMessageAdapter.OnInnerAdapterNewOutMessageAsync(message, cancellationToken)
Process InnerAdapter output message.
- message
- The message.
- cancellationToken
- Cancellation token.
OnSendInMessageAsync
protected override ValueTask OnSendInMessageAsync(Message message, CancellationToken cancellationToken)
result = securityNativeIdMessageAdapter.OnSendInMessageAsync(message, cancellationToken)
Send message.
- message
- Message.
- cancellationToken
- CancellationToken