Table of Contents

Class CsvPortfolioMessageAdapterProvider

Namespace
StockSharp.Algo.Storages
Assembly
StockSharp.Algo.dll

CSV implementation of IPortfolioMessageAdapterProvider.

public class CsvPortfolioMessageAdapterProvider : IPortfolioMessageAdapterProvider, IMappingMessageAdapterProvider<string>
Inheritance
CsvPortfolioMessageAdapterProvider
Implements
Inherited Members
Extension Methods

Constructors

CsvPortfolioMessageAdapterProvider(string)

Initializes a new instance of the CsvPortfolioMessageAdapterProvider.

public CsvPortfolioMessageAdapterProvider(string fileName)

Parameters

fileName string

File name.

Properties

Adapters

All available adapters.

public IEnumerable<KeyValuePair<string, Guid>> Adapters { get; }

Property Value

IEnumerable<KeyValuePair<string, Guid>>

DelayAction

The time delayed action.

public DelayAction DelayAction { get; set; }

Property Value

DelayAction

Methods

Init()

Initialize the storage.

public void Init()

RemoveAssociation(string)

Remove association with adapter.

public bool RemoveAssociation(string key)

Parameters

key string

Key.

Returns

bool

true if the association is successfully removed, otherwise, false.

SetAdapter(string, Guid)

Make association with adapter.

public bool SetAdapter(string key, Guid adapterId)

Parameters

key string

Key.

adapterId Guid

Adapter identifier.

Returns

bool

true if the association is successfully changed, otherwise, false.

TryGetAdapter(string)

Get adapter by the specified key.

public Guid? TryGetAdapter(string key)

Parameters

key string

Key.

Returns

Guid?

Found adapter identifier or null.

Events

Changed

Association changed.

public event Action<string, Guid, bool> Changed

Event Type

Action<string, Guid, bool>