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 9278569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:24:37+00:00 2026-06-18T17:24:37+00:00

I am completely new with IoC/windsor. I started with Google to learn it, but

  • 0

I am completely new with IoC/windsor. I started with Google to learn it, but unfortunately, I haven’t got proper documentation which could be easier for me to understand. so I came here with such this title/questions.

Every document/pages(web), Starting something similar like this

“We should start from registering the class/interface then resolve it
… “

but none of the page shows complete documentation on how to achieve that,
I tried to make a simple project too, but I failed to run it. I don’t know how to resolve container , where/how to call for install(), I am totally messed up.

Could anyone help me with a sample project which includes a complete demonstration of registration/installation?

Thanks in advance 🙂

  • 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-18T17:24:38+00:00Added an answer on June 18, 2026 at 5:24 pm

    Also Mark Seemann’s Dependency Injection in .NET book is a good place to start. Well written and has a chapter on Castle Windsor specifically.

    They also have some good tutorials on code project, I used before:

    UPDATE

    Well, the most simplistic tutorial would be as follows:

    1) In VS2010 create new console application

    2) Right click on “References”, select “Manage NuGet Packages”, install Castle.Windsor

    3) Use code below for Program.cs:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Castle.MicroKernel.Registration;
    using Castle.Windsor;
    
    namespace ExploringCastleWindsor
    {
        internal class Program
        {
            interface ILogger
            {
                void Log(string message);
            }
    
            class Logger : ILogger
            {
                public void Log(string message)
                {
                    Console.WriteLine(message);
                }
            }
    
            static void Main(string[] args)
            {
                // Registering
                var container = new WindsorContainer();
                container.Register(Component.For<ILogger>().ImplementedBy<Logger>());
                // Resolving
                var logger = container.Resolve<ILogger>();
                logger.Log("Hello World!");
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Completely new to most of this stuff, but basically Im playing around with the
I'm completely new to javascript, but I'm trying to create a beta form for
Im completely new to Java web stuff, but here goes my question: 1) How
I am completely new in the codigniter i just started day befire Yesterday i
I am completely new to this but here goes anyway. I've been reading that
Being completely new to Java EE (but not to Java itself) I'm trying to
I'm completely new to NHibernate, following along on the screencast at www.summerofnhibernate.com, which is
I´m completely new to NumPy and tried a textbook code. Unfortunately, at a certain
I'm completely new to javascript but not to programming...for the life of me I
I am completely new to php and am wondering how I could go about

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.