Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion IStartup
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jonathan Channon  
View profile  
 More options Aug 7 2012, 11:18 am
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
only one Bootstrapper should exist in one environment and the library that
I'm writing is not going to be the direct host so it should go into
IStartup.

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; }
IEnumerable<InstanceRegistration> InstanceRegistrations { get; }
IEnumerable<TypeRegistration> TypeRegistrations { 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.