protected CsvEntityList(CsvEntityRegistry registry, string fileName, Encoding encoding) { if (registry == null) { throw new ArgumentNullException(nameof(registry)); } if (fileName == null) { throw new ArgumentNullException(nameof(fileName)); } if (encoding == null) { throw new ArgumentNullException(nameof(encoding)); } Registry = registry; _fileName = System.IO.Path.Combine(Registry.Path, fileName); _encoding = encoding; ReadItems(); }
public PositionCsvList(CsvEntityRegistry registry) : base(registry, "position.csv", Encoding.UTF8) { }
public PortfolioCsvList(CsvEntityRegistry registry) : base(registry, "portfolio.csv", Encoding.UTF8) { }
public SecurityCsvList(CsvEntityRegistry registry) : base(registry, "security.csv", Encoding.UTF8) { ((ICollectionEx <Security>) this).AddedRange += s => _added?.Invoke(s); ((ICollectionEx <Security>) this).RemovedRange += s => _removed?.Invoke(s); }
public ExchangeBoardCsvList(CsvEntityRegistry registry) : base(registry, "exchangeboard.csv", Encoding.UTF8) { }