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
Exchanges
All boards.
public IEnumerable<Exchange> Exchanges { get; }
Property Value
Methods
Delete(Exchange)
Delete exchange.
public virtual void Delete(Exchange exchange)
Parameters
exchange
ExchangeExchange.
Delete(ExchangeBoard)
Delete exchange board.
public virtual void Delete(ExchangeBoard board)
Parameters
board
ExchangeBoardExchange board.
Init()
Initialize the storage.
public virtual void Init()
Save(Exchange)
To save the exchange.
public virtual void Save(Exchange exchange)
Parameters
exchange
ExchangeExchange.
Save(ExchangeBoard)
To save the board.
public virtual void Save(ExchangeBoard board)
Parameters
board
ExchangeBoardTrading board.
TryGetExchange(string)
To get an exchange by the code.
public Exchange TryGetExchange(string code)
Parameters
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
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
BoardRemoved
Notification about removing the existing board.
public event Action<ExchangeBoard> BoardRemoved
Event Type
ExchangeAdded
Notification about adding a new exchange.
public event Action<Exchange> ExchangeAdded
Event Type
ExchangeRemoved
Notification about removing the existing exchange.
public event Action<Exchange> ExchangeRemoved