Closed nblumhardt closed 8 years ago
Instead of waiting on tasks as in https://github.com/serilog/serilog-sinks-mongodb/blob/dev/src/Serilog.Sinks.MongoDB/Sinks/MongoDB/MongoDBSink.cs#L157, the sink should override PeriodicBatchingSink.EmitBatchAsync() and use await.
PeriodicBatchingSink.EmitBatchAsync()
await
Done in dev branch.
Instead of waiting on tasks as in https://github.com/serilog/serilog-sinks-mongodb/blob/dev/src/Serilog.Sinks.MongoDB/Sinks/MongoDB/MongoDBSink.cs#L157, the sink should override
PeriodicBatchingSink.EmitBatchAsync()
and useawait
.