public async Task <TSearched> ResolveAsync(DbDataReader reader, IIdentityMap map, QueryStatistics stats, CancellationToken token) { var included = await _resolver.ResolveAsync(StartingIndex, reader, map, token).ConfigureAwait(false); _callback(included); return(await _inner.ResolveAsync(reader, map, stats, token).ConfigureAwait(false)); }
public async Task <IList <T> > HandleAsync(DbDataReader reader, IIdentityMap map, CancellationToken token) { var list = new List <T>(); while (await reader.ReadAsync(token).ConfigureAwait(false)) { list.Add(await _resolver.ResolveAsync(0, reader, map, token).ConfigureAwait(false)); } return(list); }
public async Task<T> HandleAsync(DbDataReader reader, IIdentityMap map, CancellationToken token) { return await reader.ReadAsync(token).ConfigureAwait(false) ? await _resolver.ResolveAsync(0, reader, map, token).ConfigureAwait(false) : default(T); }
public NeedsCannotCtor(IResolver resolver) { var promise = resolver.ResolveAsync <CannotCtor>(); promise.ContinueWith(OnPromiseKept); }
public Task <T> ResolveAsync(DbDataReader reader, IIdentityMap map, CancellationToken token) { return(_resolver.ResolveAsync(0, reader, map, token)); }