Hello, how to register CorrelationDataProvider for sagas?
in axon 2.4 it was something like this:
@Bean
AnnotatedSagaManager accessorAccountSagaManager(SagaRepository sagaRepository, EventBus eventBus, SagaFactory sagaFactory,
CorrelationDataProvider correlationDataProvider) {
AnnotatedSagaManager sagaManager = new AnnotatedSagaManager(sagaRepository, sagaFactory, AccessorAccountSaga.class);
sagaManager.setCorrelationDataProvider(correlationDataProvider);
eventBus.subscribe(sagaManager);
return sagaManager;
}
but in axon 3 I can see the registration only on UnitOfWork
Thanks