예제 #1
0
 public async Task <IEnumerable <Contract> > GetContractsByIdAsync(
     [ID /*(nameof(Contract))*/] Guid[] ids,
     ContractByIdDataLoader contractById,
     CancellationToken cancellationToken) =>
 await contractById.LoadAsync(ids, cancellationToken);
예제 #2
0
 public Task <Contract> GetContractByIdAsync(
     [ID /*(nameof(Contract))*/] Guid id,
     ContractByIdDataLoader contractById,
     CancellationToken cancellationToken) =>
 contractById.LoadAsync(id, cancellationToken);