DriveCache

StockSharp.Algo.Storages

IMarketDataDrive cache.

Herda de: Disposable

Implementa: IAsyncPersistable

Construtores

DriveCache
public DriveCache(IFileSystem fileSystem)
driveCache = DriveCache(fileSystem)

Inicializa uma nova instância do DriveCache.

fileSystem
Abstração do sistema de arquivos.

Propriedades

DefaultDrive
public IMarketDataDrive DefaultDrive { get; }
value = driveCache.DefaultDrive

O armazenamento usado por padrão.

Drives
public IEnumerable<IMarketDataDrive> Drives { get; }
value = driveCache.Drives

Armazéns disponíveis.

TryDefaultDrive
public IMarketDataDrive TryDefaultDrive { get; }
value = driveCache.TryDefaultDrive

O armazenamento usado por padrão.

Métodos

DeleteDrive
public void DeleteDrive(IMarketDataDrive drive)
driveCache.DeleteDrive(drive)

Apagar o armazenamento.

drive
Armazenamento de dados de mercado.
DisposeManaged
protected override void DisposeManaged()
driveCache.DisposeManaged()

Libertar recursos.

GetDrive
public IMarketDataDrive GetDrive(string path)
result = driveCache.GetDrive(path)

Para obter o armazenamento para .

path
Caminho.

Retorna: Armazenamento de dados de mercado.

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = driveCache.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Retorna: Task

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = driveCache.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Retorna: Task

Update
public void Update()
driveCache.Update()

Invocar evento alterado.

Eventos

Changed
public event Action Changed
driveCache.Changed += handler

O cache mudou o evento.

DriveDeleted
public event Action<IMarketDataDrive> DriveDeleted
driveCache.DriveDeleted += handler

Armazenamento de eventos removidos.

NewDriveCreated
public event Action<IMarketDataDrive> NewDriveCreated
driveCache.NewDriveCreated += handler

Novo evento criado de armazenamento.