CsvSecurityMessageAdapterProvider

StockSharp.Algo.Storages

CSV implementation of ISecurityMessageAdapterProvider.

Implements: ISecurityMessageAdapterProvider, IMappingMessageAdapterProvider<ValueTuple<SecurityId, DataType>>

Constructors

CsvSecurityMessageAdapterProvider(string, ChannelExecutor)

Initializes a new instance of the CsvSecurityMessageAdapterProvider.

fileName
File name.
executor
Sequential operation executor for disk access synchronization.
CsvSecurityMessageAdapterProvider(IFileSystem, string, ChannelExecutor)

Initializes a new instance of the CsvSecurityMessageAdapterProvider.

fileSystem
IFileSystem
fileName
File name.
executor
Sequential operation executor for disk access synchronization.

Properties

Methods

InitAsync(CancellationToken) : ValueTask

Initialize the storage.

cancellationToken
CancellationToken
SetAdapter(SecurityId, DataType, Guid) : bool

Make association with adapter.

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

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

TryGetAdapter(SecurityId, DataType) : Guid?

Get adapter by the specified security id.

securityId
Security ID.
dataType
Data type.

Returns: Found adapter identifier or .

Events

Changed : Action<ValueTuple<SecurityId, DataType>, Guid, bool>

Association changed.