// public methods public override BulkWriteResult Execute(MongoConnection connection) { var serverInstance = connection.ServerInstance; if (!serverInstance.Supports(FeatureId.WriteCommands)) { var emulator = new BulkUpdateOperationEmulator(_args); return emulator.Execute(connection); } return base.Execute(connection); }
// public methods public override BulkWriteResult Execute(MongoConnection connection) { var serverInstance = connection.ServerInstance; if (!serverInstance.Supports(FeatureId.WriteCommands)) { var emulator = new BulkUpdateOperationEmulator(_args); return(emulator.Execute(connection)); } return(base.Execute(connection)); }