CsvEntityList

StockSharp.Algo.Storages.Csv

Lista de objetos comerciais, recebidos do armazenamento CSV.

Herda de: SynchronizedList<T>

Implementa: IStorageEntityList<T>, INotifyList<T>, INotifyCollection<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList<T>, ISynchronizedCollection<T>, ISynchronizedCollection, ISynchronizable, ICsvEntityList, IAsyncDisposable

Construtores

CsvEntityList
protected CsvEntityList(CsvEntityRegistry registry, string fileName, ChannelExecutor executor)
csvEntityList = CsvEntityList(registry, fileName, executor)

Inicializa uma nova instância do CsvEntityList.

registry
O armazenamento CSV de objetos de negociação.
fileName
Nome do ficheiro CSV.
executor
Execução de operação sequencial para sincronização de acesso ao disco.

Propriedades

Cache
public TEntity[] Cache { get; }
value = csvEntityList.Cache

Itens em cache.

CreateArchivedCopy
public bool CreateArchivedCopy { get; set; }
value = csvEntityList.CreateArchivedCopy
csvEntityList.CreateArchivedCopy = value

Criar cópia arquivada.

FileName
public string FileName { get; }
value = csvEntityList.FileName

Nome do ficheiro CSV.

Registry
protected CsvEntityRegistry Registry { get; }
value = csvEntityList.Registry

O armazenamento CSV de objetos de negociação.

Métodos

AddCache
protected virtual void AddCache(TEntity item)
csvEntityList.AddCache(item)

Adicionar item à 'cache'.

item
Novo item.
AppendEncoding
private Encoding AppendEncoding()
result = csvEntityList.AppendEncoding()

The encoding an append is written in.

Retorna: The registry's encoding, without its preamble when the file already carries one.

ClearCache
protected virtual void ClearCache()
csvEntityList.ClearCache()

- Limpo o esconderijo.

Contains
public override bool Contains(TEntity item)
result = csvEntityList.Contains(item)

Determines whether the collection contains a specific item.

item
The item to locate.

Retorna: true if the item is found; otherwise, false.

DisposeAsync
public ValueTask DisposeAsync()
result = csvEntityList.DisposeAsync()

Elimina os recursos.

GetCopy
public byte[] GetCopy()
result = csvEntityList.GetCopy()

Obter o corpo de cópia arquivado.

Retorna: Corpo de arquivo.

GetCopyAsync
public ValueTask<byte[]> GetCopyAsync(CancellationToken cancellationToken)
result = csvEntityList.GetCopyAsync(cancellationToken)

Get archived copy body.

cancellationToken
Cancellation token.

Retorna: File body.

GetKey
protected abstract TKey GetKey(TEntity item)
result = csvEntityList.GetKey(item)

Obter a chave de objeto comercial.

item
- Protesto comercial.

Retorna: A chave.

IsChanged
protected virtual bool IsChanged(TEntity entity, bool forced)
result = csvEntityList.IsChanged(entity, forced)

Mudou.

entity
- Protesto comercial.
forced
Actualização forçada.

Retorna: Mudou.

OnAdding
protected override bool OnAdding(TEntity item)
result = csvEntityList.OnAdding(item)
OnCleared
protected override void OnCleared()
csvEntityList.OnCleared()

Invokes the Cleared event and notifies of a change after clearing the collection.

OnRemoved
protected override void OnRemoved(TEntity item)
csvEntityList.OnRemoved(item)
OnRemovedRange
protected void OnRemovedRange(IEnumerable<TEntity> items)
csvEntityList.OnRemovedRange(items)
ReadAsync
protected abstract ValueTask<TEntity> ReadAsync(FastCsvReader reader, CancellationToken cancellationToken)
result = csvEntityList.ReadAsync(reader, cancellationToken)

Read data from CSV.

reader
CSV reader.
cancellationToken
CancellationToken

Retorna: Trade object.

RemoveCache
protected virtual void RemoveCache(TEntity item)
csvEntityList.RemoveCache(item)

Remover item da 'cache'.

item
Item.
Save
public virtual void Save(TEntity entity, bool forced)
csvEntityList.Save(entity, forced)

Gravar o objecto no armazenamento.

entity
- Protesto comercial.
forced
Actualização forçada.
Save
public void Save(TEntity entity)
csvEntityList.Save(entity)
ToString
public override string ToString()
result = csvEntityList.ToString()

Converter para uma representação de linha.

Retorna: Desempenho de cordas.

UpdateCache
protected virtual void UpdateCache(TEntity item)
csvEntityList.UpdateCache(item)

Actualizar o item na 'cache'.

item
Item.
WriteAsync
protected abstract ValueTask WriteAsync(CsvFileWriter writer, TEntity data, CancellationToken cancellationToken)
result = csvEntityList.WriteAsync(writer, data, cancellationToken)

Escreva dados em CSV.

writer
Escritor CSV.
data
- Protesto comercial.
cancellationToken
CancellationToken
WriteMany
private void WriteMany(TEntity[] values)
csvEntityList.WriteMany(values)

Escreva dados no armazenamento.

values
Trocar objectos.