Browse Source

Merge pull request #12439 from abpframework/liangshiwei/patch

Make method DeleteManyAsync virtual
pull/12442/head
maliming 5 years ago
committed by GitHub
parent
commit
9d5d17260c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/src/Volo.Abp.MongoDB/Volo/Abp/MongoDB/DistributedEvents/MongoDbContextEventOutbox.cs

2
framework/src/Volo.Abp.MongoDB/Volo/Abp/MongoDB/DistributedEvents/MongoDbContextEventOutbox.cs

@ -70,7 +70,7 @@ public class MongoDbContextEventOutbox<TMongoDbContext> : IMongoDbContextEventOu
} }
[UnitOfWork] [UnitOfWork]
public async Task DeleteManyAsync(IEnumerable<Guid> ids) public virtual async Task DeleteManyAsync(IEnumerable<Guid> ids)
{ {
var dbContext = (IHasEventOutbox)await MongoDbContextProvider.GetDbContextAsync(); var dbContext = (IHasEventOutbox)await MongoDbContextProvider.GetDbContextAsync();
if (dbContext.SessionHandle != null) if (dbContext.SessionHandle != null)

Loading…
Cancel
Save