Table of Contents

Class InMemoryExchangeInfoProvider

Namespace
StockSharp.BusinessEntities
Assembly
StockSharp.BusinessEntities.dll

The in memory provider of stocks and trade boards.

public class InMemoryExchangeInfoProvider : IExchangeInfoProvider, IBoardMessageProvider
Inheritance
InMemoryExchangeInfoProvider
Implements
Derived
Inherited Members
Extension Methods

Constructors

InMemoryExchangeInfoProvider()

Initializes a new instance of the InMemoryExchangeInfoProvider.

public InMemoryExchangeInfoProvider()

Properties

Boards

All exchanges.

public IEnumerable<ExchangeBoard> Boards { get; }

Property Value

IEnumerable<ExchangeBoard>

Exchanges

All boards.

public IEnumerable<Exchange> Exchanges { get; }

Property Value

IEnumerable<Exchange>

Methods

Delete(Exchange)

Delete exchange.

public virtual void Delete(Exchange exchange)

Parameters

exchange Exchange

Exchange.

Delete(ExchangeBoard)

Delete exchange board.

public virtual void Delete(ExchangeBoard board)

Parameters

board ExchangeBoard

Exchange board.

Init()

Initialize the storage.

public virtual void Init()

Save(Exchange)

To save the exchange.

public virtual void Save(Exchange exchange)

Parameters

exchange Exchange

Exchange.

Save(ExchangeBoard)

To save the board.

public virtual void Save(ExchangeBoard board)

Parameters

board ExchangeBoard

Trading board.

TryGetExchange(string)

To get an exchange by the code.

public Exchange TryGetExchange(string code)

Parameters

code string

The exchange code Name.

Returns

Exchange

Exchange. If the exchange with the specified code does not exist, then null will be returned.

TryGetExchangeBoard(string)

To get a board by the code.

public ExchangeBoard TryGetExchangeBoard(string code)

Parameters

code string

The board code Code.

Returns

ExchangeBoard

Trading board. If the board with the specified code does not exist, then null will be returned.

Events

BoardAdded

Notification about adding a new board.

public event Action<ExchangeBoard> BoardAdded

Event Type

Action<ExchangeBoard>

BoardRemoved

Notification about removing the existing board.

public event Action<ExchangeBoard> BoardRemoved

Event Type

Action<ExchangeBoard>

ExchangeAdded

Notification about adding a new exchange.

public event Action<Exchange> ExchangeAdded

Event Type

Action<Exchange>

ExchangeRemoved

Notification about removing the existing exchange.

public event Action<Exchange> ExchangeRemoved

Event Type

Action<Exchange>