public async Task Dump(IEnumerable <MarginTradingAccount> accounts) { var reportTime = _dateService.Now(); var entities = accounts.Select(x => AccountStatEntity.Create(x, reportTime)); await _tableStorage.DeleteAsync(); await _tableStorage.CreateTableIfNotExistsAsync(); await _tableStorage.InsertAsync(entities); }
public async Task Dump(IEnumerable <Position> openPositions) { var reportTime = _dateService.Now(); var entities = openPositions.Select(x => OpenPositionEntity.Create(x, reportTime)); await _tableStorage.DeleteAsync(); await _tableStorage.CreateTableIfNotExistsAsync(); await _tableStorage.InsertAsync(entities); }
public Task CreateTableIfNotExistsAsync() { return(_storage.CreateTableIfNotExistsAsync()); }
public Task CreateTableIfNotExistsAsync() { return(_impl.CreateTableIfNotExistsAsync()); }