public async Task AddAsync(HistoryEntry he)
 {
     await collection.InsertOneAsync(he);
 }
 public void Add(HistoryEntry he)
 {
     collection.InsertOne(he);
 }
Example #3
0
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
        public async Task AddAsync(HistoryEntry he)
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
        {
            this.Add(he);
        }