コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <summary>
 /// Execute Count methos in filter query
 /// </summary>
 public Task <long> LongCountAsync()
 {
     return(_liteDatabaseAsync.EnqueueAsync(
                () => _wrappedQuery.LongCount()));
 }