ExtrudeSrfTapered with Rhinocommon

I was wondering how to reproduce the behaviour of the ExtrudeSrfTapered command with Rhinocommon. Scripting is definitely an option, I know, but I’d like to keep it as encapsulated as I can.
The command has a great way of working with containers and contained areas (think of a letter like a “O”), choosing the right way to taper them properly directly on surfaces.
Anyway, Rhinocommon seems to have tapered options for single curves only.
Any idea would be appreciated.