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)); }
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)); }
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)); }