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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -