// public methods public override BulkWriteResult Execute(MongoConnection connection) { var serverInstance = connection.ServerInstance; if (!serverInstance.Supports(FeatureId.WriteCommands)) { var emulator = new BulkDeleteOperationEmulator(_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 BulkDeleteOperationEmulator(_args); return(emulator.Execute(connection)); } return(base.Execute(connection)); }