Class DriveCache
- Namespace
- StockSharp.Algo.Storages
- Assembly
- StockSharp.Algo.dll
IMarketDataDrive cache.
public class DriveCache : Disposable, IPersistable
- Inheritance
-
DriveCache
- Implements
-
IPersistable
- Extension Methods
Constructors
DriveCache()
Initializes a new instance of the DriveCache.
public DriveCache()
Properties
DefaultDrive
The storage used by default.
public IMarketDataDrive DefaultDrive { get; }
Property Value
Drives
Available storages.
public IEnumerable<IMarketDataDrive> Drives { get; }
Property Value
Methods
DeleteDrive(IMarketDataDrive)
Delete storage.
public void DeleteDrive(IMarketDataDrive drive)
Parameters
drive
IMarketDataDriveMarket data storage.
DisposeManaged()
Release resources.
protected override void DisposeManaged()
GetDrive(string)
To get the storage for path
.
public IMarketDataDrive GetDrive(string path)
Parameters
path
stringPath.
Returns
- IMarketDataDrive
Market data storage.
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Update()
Invoke Changed event.
public void Update()
Events
Changed
Cache changed event.
public event Action Changed
Event Type
DriveDeleted
Storage removed event.
public event Action<IMarketDataDrive> DriveDeleted
Event Type
NewDriveCreated
New storage created event.
public event Action<IMarketDataDrive> NewDriveCreated