示例#1
0
 public async Task EnqueueUpdateAsync(EmailBlastUpdate update)
 {
     var col = _database.GetCollection <EmailBlastUpdate>("queue");
     await col.InsertOneAsync(update);
 }
示例#2
0
 public async Task ChangeProcessed(EmailBlastUpdate update)
 {
     var col = _database.GetCollection <EmailBlastUpdate>("queue");
     await col.DeleteOneAsync(x => x.Id == update.Id);
 }