Table of Contents

Class DriveCache

Namespace
StockSharp.Algo.Storages
Assembly
StockSharp.Algo.dll
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

IMarketDataDrive

Drives

Available storages.

public IEnumerable<IMarketDataDrive> Drives { get; }

Property Value

IEnumerable<IMarketDataDrive>

Methods

DeleteDrive(IMarketDataDrive)

Delete storage.

public void DeleteDrive(IMarketDataDrive drive)

Parameters

drive IMarketDataDrive

Market data storage.

DisposeManaged()

Release resources.

protected override void DisposeManaged()

GetDrive(string)

To get the storage for path.

public IMarketDataDrive GetDrive(string path)

Parameters

path string

Path.

Returns

IMarketDataDrive

Market data storage.

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Update()

Invoke Changed event.

public void Update()

Events

Changed

Cache changed event.

public event Action Changed

Event Type

Action

DriveDeleted

Storage removed event.

public event Action<IMarketDataDrive> DriveDeleted

Event Type

Action<IMarketDataDrive>

NewDriveCreated

New storage created event.

public event Action<IMarketDataDrive> NewDriveCreated

Event Type

Action<IMarketDataDrive>