コード例 #1
0
        Lazy <Task <Dictionary <string, T> > > IAsyncLazySessionOperations.LoadStartingWithAsync <T>(string idPrefix, string matches, int start, int pageSize,
                                                                                                     string exclude, string startAfter,
                                                                                                     CancellationToken token)
        {
            var operation = new LazyStartsWithOperation <T>(idPrefix, matches, exclude, start, pageSize, this, startAfter);

            return(AddLazyOperation <Dictionary <string, T> >(operation, null, token));
        }
コード例 #2
0
        Lazy <T[]> ILazySessionOperations.LoadStartingWith <T>(string keyPrefix, string matches, int start, int pageSize, string exclude, RavenPagingInformation pagingInformation)
        {
            IncrementRequestCount();
            var cmds = GetCommandsToOperateOn(new ShardRequestData
            {
                EntityType = typeof(T),
                Keys       = { keyPrefix }
            });

            var lazyLoadOperation = new LazyStartsWithOperation <T>(keyPrefix, matches, exclude, start, pageSize, this, null);

            return(AddLazyOperation <T[]>(lazyLoadOperation, null, cmds));
        }
コード例 #3
0
        Lazy <T[]> ILazySessionOperations.LoadStartingWith <T>(string keyPrefix, string matches, int start, int pageSize, string exclude, RavenPagingInformation pagingInformation)
        {
            var operation = new LazyStartsWithOperation <T>(keyPrefix, matches, exclude, start, pageSize, this, pagingInformation);

            return(AddLazyOperation <T[]>(operation, null));
        }
コード例 #4
0
        Lazy <Dictionary <string, TResult> > ILazySessionOperations.LoadStartingWith <TResult>(string idPrefix, string matches, int start, int pageSize, string exclude, string startAfter)
        {
            var operation = new LazyStartsWithOperation <TResult>(idPrefix, matches, exclude, start, pageSize, this, startAfter);

            return(AddLazyOperation <Dictionary <string, TResult> >(operation, null));
        }
コード例 #5
0
        Lazy <Task <T[]> > IAsyncLazySessionOperations.LoadStartingWithAsync <T>(string keyPrefix, string matches, int start, int pageSize, string exclude, RavenPagingInformation pagingInformation, string skipAfter, CancellationToken token)
        {
            var operation = new LazyStartsWithOperation <T>(keyPrefix, matches, exclude, start, pageSize, this, pagingInformation, skipAfter);

            return(AddLazyOperation <T[]>(operation, null, token));
        }
コード例 #6
0
        Lazy <T[]> ILazySessionOperations.LoadStartingWith <T>(string keyPrefix, string matches, int start, int pageSize)
        {
            var operation = new LazyStartsWithOperation <T>(keyPrefix, matches, start, pageSize, this);

            return(AddLazyOperation <T[]>(operation, null));
        }