ISecurityMessageAdapterProvider

StockSharp.Algo.Storages

The security based message adapter's provider interface.

Implements: IMappingMessageAdapterProvider<ValueTuple<SecurityId, DataType>>

Methods

SetAdapter
public bool SetAdapter(SecurityId securityId, DataType dataType, Guid adapterId)
result = iSecurityMessageAdapterProvider.SetAdapter(securityId, dataType, adapterId)

Make association with adapter.

securityId
Security ID.
dataType
Data type.
adapterId
Adapter identifier.

Returns: if the association is successfully changed, otherwise, .

TryGetAdapter
public Guid? TryGetAdapter(SecurityId securityId, DataType dataType)
result = iSecurityMessageAdapterProvider.TryGetAdapter(securityId, dataType)

Get adapter by the specified security id.

securityId
Security ID.
dataType
Data type.

Returns: Found adapter identifier or .