public async Task UpdateAsync(IPipelineTask task)
 {
     if (task == null)
     {
         return;
     }
     PipelineTaskMongoDbModel dbo = new PipelineTaskMongoDbModel(task);
     await TaskCollection.ReplaceOneAsync(new BsonDocument("_id", new ObjectId(task.Id)), dbo);
 }
 public async Task CreateAsync(IPipelineTask task)
 {
     if (task == null)
     {
         return;
     }
     PipelineTaskMongoDbModel dbo = new PipelineTaskMongoDbModel(task);
     await TaskCollection.InsertOneAsync(dbo);
 }