Ejemplo n.º 1
0
        public Task <int> IntoAsync(string newCollection, BsonAutoId autoId = BsonAutoId.ObjectId)
        {
            var tcs = new TaskCompletionSource <int>();

            _liteDatabaseAsync.Enqueue(tcs, () => {
                tcs.SetResult(_wrappedQuery.Into(newCollection, autoId));
            });
            return(tcs.Task);
        }
Ejemplo n.º 2
0
 public Task <int> IntoAsync(string newCollection, BsonAutoId autoId = BsonAutoId.ObjectId)
 {
     return(_liteDatabaseAsync.EnqueueAsync(
                () => _wrappedQuery.Into(newCollection, autoId)));
 }