Skip to content

Instantly share code, notes, and snippets.

@RyanHauert
Created November 10, 2012 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanHauert/4051749 to your computer and use it in GitHub Desktop.
Save RyanHauert/4051749 to your computer and use it in GitHub Desktop.
Raven saga persister setup
public class MyBootStrapper : CastleBootStrapper
{
protected override void ConfigureBusFacility(AbstractRhinoServiceBusConfiguration configuration)
{
base.ConfigureBusFacility(configuration);
configuration.AddMessageModule<RavenStoreProviderMessageModule>();
}
protected override void ConfigureContainer()
{
base.ConfigureContainer();
Container.Register(
Component.For<IDocumentStoreProvider>()
.ImplementedBy<RavenStoreProviderMessageModule>(),
Component.For(typeof(ISagaPersister<>))
.ImplementedBy(typeof(RavenSagaPersister<>)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment