We are using Sitecore 9.1
It is possible to get all rendering references for a given item by using:
However, this will give me an array of RenderingReference.
The module I am developing, needs to run this pipeline:
PipelineService.Get().RunPipeline<RenderRenderingArgs>("mvc.renderRendering", new RenderRenderingArgs(rendering, writer));
Which requires a
Rendering object and not a 'RenderingRef' object.
How do I get the corresponding
Rendering from RenderingRef?