Created
November 10, 2012 17:11
-
-
Save RyanHauert/4051749 to your computer and use it in GitHub Desktop.
Raven saga persister setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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