Esempio n. 1
0
 /// <summary>
 /// Encodes a collection
 /// </summary>
 /// <param name="collection"></param>
 /// <param name="ct"></param>
 /// <returns></returns>
 public async Task Encode(IMongoCollection <BsonDocument> collection, CancellationToken?ct = null)
 {
     if (ct == null)
     {
         ct = CancellationToken.None;
     }
     await _encoder.ApplyToAllFields(collection, ct);
 }