protected override async Task <IReadOnlyDictionary <Guid, Variable?> > LoadBatchAsync( IReadOnlyList <Guid> keys, CancellationToken cancellationToken) { IEnumerable <Variable> variables = await _variableStore.GetManyAsync( keys, cancellationToken); return(variables.ToDictionary(x => x.Id) !); }
public async Task <IEnumerable <Variable> > GetManyAsync( IEnumerable <Guid> ids, CancellationToken cancellationToken) { return(await _variableStore.GetManyAsync(ids, cancellationToken)); }