From 5f6e015bf28693bbc0930c411eabb10c9fc04672 Mon Sep 17 00:00:00 2001 From: Alexandre SPIESER Date: Mon, 15 Mar 2021 11:07:35 +0000 Subject: [PATCH] fix mistake: missing cancellation token --- .../KeyTypedRepository/BaseMongoRepository.TKey.Create.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MongoDbGenericRepository/KeyTypedRepository/BaseMongoRepository.TKey.Create.cs b/MongoDbGenericRepository/KeyTypedRepository/BaseMongoRepository.TKey.Create.cs index 1a1b439..98131fd 100644 --- a/MongoDbGenericRepository/KeyTypedRepository/BaseMongoRepository.TKey.Create.cs +++ b/MongoDbGenericRepository/KeyTypedRepository/BaseMongoRepository.TKey.Create.cs @@ -87,7 +87,7 @@ protected virtual MongoDbCreator MongoDbCreator /// An optional cancellation Token. public virtual async Task AddOneAsync(TDocument document, CancellationToken cancellationToken = default) where TDocument : IDocument { - await MongoDbCreator.AddOneAsync(document); + await MongoDbCreator.AddOneAsync(document, cancellationToken); } ///