nhibernate - Does StructureMap have scoping corresponding to NInject's DefinesNamedScope/InNamedScope? -
the problem i'd solve sharing isessionprovider between ixyzrepositories (where isessionprovider holds current nhibernate isession).
i'm tweaking "setting session per presenter" recipe nhibernate 3 cookbook, , keep structuremap (brownfield project).
i think have create custom lifecyle that, although not sure trying accomplish...
to create custom lifecycle, have implement ilifecycle interface , use in registration. here example can at: http://blog.mikeobrien.net/2010/01/creating-structuremap-lifecycle-for-wcf.html.
Comments
Post a Comment