aggregate

inline fun <reified S : Any> aggregate(context: String, name: String, noinline block: AggregateModelBuilder<S>.() -> Unit): AggregateModel<S>

Builds an AggregateModel of state S for the aggregate name of bounded context context.


fun <S : Any> aggregate(stateType: Class<S>, context: String, name: String, block: AggregateModelBuilder<S>.() -> Unit): AggregateModel<S>

Builds an AggregateModel of state stateType for the aggregate name of bounded context context.