Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8907527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:56:22+00:00 2026-06-15T02:56:22+00:00

I’m starting a multi project solution that will have more than one entry point,

  • 0

I’m starting a multi project solution that will have more than one entry point, for example a Windows Service, ASP.NET web sites, WebApi Controllers etc. I’ve settled on SimpleInjector as it’s very fast and I do not need any advanced features.

My understanding is that SimpleInjector should be centrally configured on start-up. Starting with the following basic example set of projects

  • NS.Controllers
  • NS.Core.Data
  • NS.Core.Data.Model
  • NS.Web
  • NS.WindowsService (assume this will not always be running)

With multiple entry points where should the bootstrapping of SimpleInjector go and can/should it be handled centrally (in which case the configuration process would need to reference all projects to be able to set up all solution classes)?

Should I have a global instance (such as NS.Global.Container) that references none of the other projects and each entry point is responsible for adding its own instance requirements on startup (gracefully handling duplicate registrations such as NS.Core.Model)?

Should I be looking to use the ResolveUnregisteredType event to handle registrations on request?

Am I simply lacking some schoolboy knowledge?

UPDATED:

Links provided by Steven in the comments below give thorough answers to this question.

Where to locate Ninject modules in a multi-tier application

How to initialize Ninject in a class project part of an mvc site

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:56:23+00:00Added an answer on June 15, 2026 at 2:56 am

    Each entry point should have its own bootstrapping container.

    NS.Web should have one, since that is a website (I’m assuming here).
    NS.WindowsService should have one, since that is .exe (service).

    The other projects look like class libraries, so they would not have a bootstrapping container.

    In theory, yes, you can define a partial bootstrapping container in each class library which you can then use in the main bootstrapping container (in the web/service projects), to make life easier. In the partial container you would then do the bootstrapping for the components of that class library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm starting to develop some multi-thread plataform to a project that allready exists (a
Starting to learn Canvas and have two classes so far (main one to call
Starting a new rails project and we have a well-thought-out color palette, and want
I am starting with multi-threads in python (or at least it is possible that
I am beginner to .NET. I have a question regarding windows service application running
i'm starting in Windows Azure. I tried to create a new service namespace following
I've written a multi-threaded windows service in C#. For some reason, csc.exe is being
I'm starting a new ASP.NET project, and I'm trying to follow the multi-project approach
I'm starting a new ASP.NET project, and I'm trying to follow the multi-project approach
I'm starting my hand at creating a multi-player game using HTML 5 / Javascript.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.