Table of Contents

Class InMemoryPortfolioMessageAdapterProvider

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

In memory implementation of IPortfolioMessageAdapterProvider.

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

Constructors

InMemoryPortfolioMessageAdapterProvider()

Initializes a new instance of the InMemoryPortfolioMessageAdapterProvider.

public InMemoryPortfolioMessageAdapterProvider()

Properties

Adapters

All available adapters.

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

Property Value

IEnumerable<KeyValuePair<string, Guid>>

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>