Skip to content
Daniel Little edited this page Nov 22, 2015 · 4 revisions

Currently MicroBus only support an in memory data store for sagas.

var builder = new ContainerBuilder();

var container = builder
	.RegisterSagas()
	.RegisterMicroBus(busBuilder => busBuilder.RegisterSaga<TestSaga>(new FinderList()
		.AddSagaFinder<FinderA>()
		.AddSagaFinder<FinderB>()
		.AddSagaFinder<FinderC>()
	))
	.Build();

var bus = container.Resolve<IMicroBus>();

await bus.Publish(new SagaStartingAEvent() { Identifier = id });

await bus.Publish(new SagaEndingEvent() { Identifier = id });
Clone this wiki locally