You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ncommon
I'm an NCommon 1.0 using giving 1.1 a spin. I'm trying figure out the
new config. Here's what I have:
var sessionSourceGenerator = new
SessionSourceGenerator("logistics.reporting");
var containerAdapter = new
StructureMapContainerAdapter(ObjectFactory.Container);
Configure.Using(containerAdapter)
.ConfigureState<DefaultStateConfiguration>()
.ConfigureUnitOfWork<DefaultUnitOfWorkConfiguration>()
.ConfigureData<NHConfiguration>(x => x.WithSessionFactory(
() => sessionSourceGenerator.SessionSource.SessionFactory)); //
NOTE: SessionSource is from FluentNhib
On the call to Configure, I get a stack overflow exception. Any
ideas?
Also, do I still need to do something like this:
ServiceLocator.SetLocatorProvider(() => new
StructureMapServiceLocator(ObjectFactory.Container));
If so, what needs to be in the container? Thanks.
Ritesh Rao
unread,
Sep 8, 2010, 12:10:00 PM9/8/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ncommon
Interesting. What commit version are you using? Are you using binaries
built from the 1.1 master branch? There used to be a Stackoverflow
exception in the StructureMapContainerAdapter which was fixed a while
back in the 1.1 master branch...
Tim
unread,
Sep 8, 2010, 1:50:34 PM9/8/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message