示例#1
0
        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));
        }
示例#2
0
        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);
        }
示例#3
0
 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);
        }
示例#5
0
 public Task <T> ResolveAsync(DbDataReader reader, IIdentityMap map, CancellationToken token)
 {
     return(_resolver.ResolveAsync(0, reader, map, token));
 }