Class DriveCache
Кэш IMarketDataDrive.
Implements
Ecng.Serialization.IPersistable
Namespace: StockSharp.Algo.Storages
Assembly: StockSharp.Algo.dll
Syntax
public class DriveCache : Disposable, IPersistable
Constructors
DriveCache(IMarketDataDrive)
Создать DriveCache.
Declaration
public DriveCache(IMarketDataDrive defaultDrive)
Parameters
Type | Name | Description |
---|---|---|
IMarketDataDrive | defaultDrive | Хранилище, которое используется по умолчанию. |
Properties
DefaultDrive
Хранилище, которое используется по умолчанию.
Declaration
public IMarketDataDrive DefaultDrive { get; }
Property Value
Type | Description |
---|---|
IMarketDataDrive |
Drives
Доступные хранилища.
Declaration
public IEnumerable<IMarketDataDrive> Drives { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IMarketDataDrive> |
Methods
DeleteDrive(IMarketDataDrive)
Удалить хранилище.
Declaration
public void DeleteDrive(IMarketDataDrive drive)
Parameters
Type | Name | Description |
---|---|---|
IMarketDataDrive | drive | Market data storage. |
DisposeManaged()
Освободить занятые ресурсы.
Declaration
protected override void DisposeManaged()
GetDrive(String)
Получить хранилище для path
.
Declaration
public IMarketDataDrive GetDrive(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | Path. |
Returns
Type | Description |
---|---|
IMarketDataDrive | Market data storage. |
Load(SettingsStorage)
Загрузить настройки.
Declaration
public void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Save(SettingsStorage)
Сохранить настройки.
Declaration
public void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Update()
Вызвать событие Changed.
Declaration
public void Update()
Events
Changed
Событие изменения кэша.
Declaration
public event Action Changed
Event Type
Type | Description |
---|---|
Action |
DriveDeleted
Событие удаления хранилища.
Declaration
public event Action<IMarketDataDrive> DriveDeleted
Event Type
Type | Description |
---|---|
Action<IMarketDataDrive> |
NewDriveCreated
Событие создания нового хранилища.
Declaration
public event Action<IMarketDataDrive> NewDriveCreated
Event Type
Type | Description |
---|---|
Action<IMarketDataDrive> |
Implements
Ecng.Serialization.IPersistable