Cast Corpse Dance by paying its mana cost, targeting any applicable target.
Holding priority, cast Dualcaster Mage by paying its mana cost.
When Dualcaster Mage enters, it triggers, targeting Corpse Dance.
Holding priority, activate Yahenni by sacrificing Dualcaster Mage.
Resolve the Dualcaster Mage trigger, copying Corpse Dance, with the copy targeting Dualcaster Mage
Resolve the Corpse Dance copy, returning Dualcaster Mage from your graveyard to the battlefield.
Repeat from step 3.
This elegant loop transforms a graveyard recursion spell into an endless engine by using Dualcaster Mage to continuously copy Corpse Dance from exile or the graveyard, netting you endless creature sacrifices, enters-the-battlefield, and death triggers. While Dualcaster Mage pulls the heavy lifting by copying the spell on entry, Yahenni, Undying Partisan serves as the vital sacrifice outlet to send the Mage right back where it needs to be. Furthermore, Yahenni's passive ability happily grows with every loop iteration, turning your infinite sacrifice loop into an arbitrarily massive threat.