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); }
public Task <int> IntoAsync(string newCollection, BsonAutoId autoId = BsonAutoId.ObjectId) { return(_liteDatabaseAsync.EnqueueAsync( () => _wrappedQuery.Into(newCollection, autoId))); }