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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:49:25+00:00 2026-05-24T05:49:25+00:00

I have an IPlugin interface and a IPluginFactory What I want to do is

  • 0

I have an IPlugin interface and a IPluginFactory
What I want to do is to be able to add new implementations of IPlugin at runtime (for instance, adding a Dll with a new implementation to a “Plugins” folder).

I’m using Castle Windsor as my IoC container and I’m using TypedFactory facility to implement the IPluginFactory. So here is my question:

How can I register new IPlugin implementations at runtime in windsor (I’m thinking in something like adding a Dll that contains a WindsorInstaller but I’m not sure how to proceed)

  • 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-05-24T05:49:25+00:00Added an answer on May 24, 2026 at 5:49 am

    Windsor has some support for plugins but it’s not the primary goal of the framework. Most notably, Windsor does not provide any out of the box mechanism for discovering that a new .dll has been dropped into a directory. It also does not provide any form of OOTB isolation from plugins (in form of hosting them in separate AppDomain or other). Neither does it provide ability to unload plugins/components (there’s a container.RemoveComponent() method, but it’s not really working and is removed in upcoming Windsor 3).

    Perhaps a combimation of MAF and MEF would better suit your requirements if you need to do those things at runtime.

    If you relax your security requirements (no isolation) and your runtime change requirements (to be once, at start-up time) Windsor can support this scenario.

    The best way to do it is to have some installers (IWindsorInstaller) in your plugin assembly and use

    container.Install(FromAssembly.InDirectory(...));
    

    methods to discover those assemblies and run installers registering your plugin components.

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

Sidebar

Related Questions

I'm writing a simple plugin based program. I have an interface IPlugin which has
Basically what I need is being able to add new functionality to my application,
I have such piece of code: namespace NetHacking { interface IPlugin { void Execute(PluginData
I currently have a C# project which uses plugins and has a fairly common
I have a .net-app that provides a mechanism to extend the app with plugins.
My application allows users to write plugins (implementing IPlugin) that they can instantiate at
I'm developing an application with plugins. I have a separate API assembly with all
I'm trying to create a sandboxed AppDomain for loading extensions/plugins. I have a MarshalByRefObject
Have finally got a responsive site working (of a fashion). What I want to
Have some code: using (var ctx = new testDataContext()) { var options = new

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.