Esempio n. 1
0
        public Lazy <TResult[]> MoreLikeThis <TResult>(MoreLikeThisQuery query)
        {
            var multiLoadOperation = new MultiLoadOperation(this, DatabaseCommands.DisableAllCaching, null, null);
            var lazyOp             = new LazyMoreLikeThisOperation <TResult>(multiLoadOperation, query);

            return(AddLazyOperation <TResult[]>(lazyOp, null));
        }
Esempio n. 2
0
        public Lazy <Task <TResult[]> > MoreLikeThisAsync <TResult>(MoreLikeThisQuery query, CancellationToken token = default(CancellationToken))
        {
            var multiLoadOperation = new MultiLoadOperation(this, AsyncDatabaseCommands.DisableAllCaching, null, null);
            var lazyOp             = new LazyMoreLikeThisOperation <TResult>(multiLoadOperation, query);

            return(AddLazyOperation <TResult[]>(lazyOp, null, token));
        }
Esempio n. 3
0
        Lazy <List <TResult> > ILazySessionOperations.MoreLikeThis <TResult>(MoreLikeThisQuery query)
        {
            //TODO - DisableAllCaching
            var lazyOp = new LazyMoreLikeThisOperation <TResult>(this, query);

            return(AddLazyOperation <List <TResult> >(lazyOp, null));
        }
        Lazy <Task <List <T> > > IAsyncLazySessionOperations.MoreLikeThisAsync <T>(MoreLikeThisQuery query, CancellationToken token)
        {
            var lazyOp = new LazyMoreLikeThisOperation <T>(this, query);

            return(AddLazyOperation <List <T> >(lazyOp, null, token));
        }