From: Jonathan Channon <jonathan.chan...@gmail.com>
Date: Tue, 7 Aug 2012 08:18:34 -0700 (PDT)
Local: Tues, Aug 7 2012 11:18 am
Subject: IStartup
I've begun using IStartup instead of a Bootstrapper. I've been told that I've done this but I need to move the below into IStartup: Func<TinyIoCContainer, NamedParameterOverloads, IDocumentSession> factory = (ioccontainer, namedparams) => new DocumentSessionProvider().GetSession(); container.Register(factory); In IStarup there are IEnumerable<CollectionTypeRegistration> CollectionTypeRegistrations { get; } Firstly I'm not sure which one I should put this logic into, I assume TypeRegistrations but then I'm not sure how to configure it to create a new TypeRegistration and pass in the Func. There does not seem to be any documentation on IStartup Thanks You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||