addProjection

fun <P : Projection<A>> addProjection(projection: P): P(source)

Attach projection to this context. The projection's lifecycle hooks fire on subsequent add / remove operations. Existing members do NOT retroactively trigger onAgentJoined — projections that need to initialize state for all existing members should do so explicitly.