public async Task<string> GetWithStackedDataLoader( string key, FieldNode fieldSelection, [DataLoader("fooBar")]TestDataLoader testDataLoader, CancellationToken cancellationToken) { string s = await testDataLoader.LoadAsync(key + "a", cancellationToken); s += await testDataLoader.LoadAsync(key + "b", cancellationToken); s += await testDataLoader.LoadAsync(key + "c", cancellationToken); s += await testDataLoader.LoadAsync(key + "d", cancellationToken); s += await testDataLoader.LoadAsync(key + "e", cancellationToken); return s; }
public Task <string> GetWithDataLoader( string key, FieldNode fieldSelection, [DataLoader] TestDataLoader testDataLoader) { return(testDataLoader.LoadAsync(key)); }
public Task <string> GetWithDataLoader( string key, FieldNode fieldSelection, [DataLoader] TestDataLoader testDataLoader, CancellationToken cancellationToken) { return(testDataLoader.LoadAsync(key, cancellationToken)); }