Ejemplo n.º 1
0
    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) !);
    }
Ejemplo n.º 2
0
 public async Task <IEnumerable <Variable> > GetManyAsync(
     IEnumerable <Guid> ids,
     CancellationToken cancellationToken)
 {
     return(await _variableStore.GetManyAsync(ids, cancellationToken));
 }