I am doing inline call's to RenderComponentPresentation from a CT (CT carousel, which renders individual carousel items with CT Item). Challenge: items need to know their position within the carousel.
I am currently using Context Variable (engine.PublishingContext.RenderContext.ContextVariables.Add) to set the position variable before calling each RenderComponentPresentation.
Are there any risks in using this approach? Are Context Variables "shared" outside my current rendering context (for example during publishing of SG, or multiple pages, with multiple publishing threads...) ?