/// <summary> /// Execute Count methos in filter query /// </summary> public Task <long> LongCountAsync() { var tcs = new TaskCompletionSource <long>(); _liteDatabaseAsync.Enqueue(tcs, () => { tcs.SetResult(_wrappedQuery.LongCount()); }); return(tcs.Task); }
/// <summary> /// Execute Count methos in filter query /// </summary> public Task <long> LongCountAsync() { return(_liteDatabaseAsync.EnqueueAsync( () => _wrappedQuery.LongCount())); }