Created
May 7, 2012 03:37
-
-
Save ronnieoverby/2625747 to your computer and use it in GitHub Desktop.
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 RavenModule : NinjectModule | |
{ | |
public override void Load() | |
{ | |
Bind<IDocumentStore>().ToConstant(CMSConfiguration.Instance.DocumentStore); | |
Bind<IDocumentSession>().ToMethod(x => x.Kernel.Get<IDocumentStore>().OpenSession()).InRequestScope(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment