How to create a Pluggin

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Elliott

    #1

    How to create a Pluggin

    I have written an application and am looking to extend its capabilities. I am looking to create
    pluggins and don't know where to start. I am also looking to store the pluggins in a subdirectory
    from the application root.

    I looked on MSDN and some of the other code sites but couldn't find and example. Does anyone have
    an example?

    Thanks,
    Dave
    DavidElliott@Be llSouth.net

  • Chris

    #2
    Re: How to create a Pluggin

    Give this a try ... it might give you some ideas:

    http://www.c-sharpcorner.com/Code/20...semblyInfo.asp

    Cheers,

    Chris


    "David Elliott" <DavidElliott@B ellSouth.net> wrote in message
    news:qvc5hvsv3b badnctvuph1cphr 7f7i7k5ll@4ax.c om...[color=blue]
    > I have written an application and am looking to extend its capabilities.[/color]
    I am looking to create[color=blue]
    > pluggins and don't know where to start. I am also looking to store the[/color]
    pluggins in a subdirectory[color=blue]
    > from the application root.
    >
    > I looked on MSDN and some of the other code sites but couldn't find and[/color]
    example. Does anyone have[color=blue]
    > an example?
    >
    > Thanks,
    > Dave
    > DavidElliott@Be llSouth.net
    >[/color]


    Comment

    • Allen Jones

      #3
      Re: How to create a Pluggin

      AppDomains are very useful when building extensible apps that use a plugin
      architecture. By loading a plugin into a separate app domain, it allows you
      to unload the plugins and also give you a lot of control over the run-time
      security capabilities of the plugins.

      Once you start using AppDomains, you might consider a controller class to
      simplify the manipulation and interaction with the code loaded into the
      other AppDomains. Basically, create the AppDomain, load the controller class
      into it, and then use the members of the controller class to manage the
      plugins that are loaded into the AppDomain and pass data back and forth.

      Regards
      Allen

      "David Elliott" <DavidElliott@B ellSouth.net> wrote in message
      news:qvc5hvsv3b badnctvuph1cphr 7f7i7k5ll@4ax.c om...[color=blue]
      > I have written an application and am looking to extend its capabilities.[/color]
      I am looking to create[color=blue]
      > pluggins and don't know where to start. I am also looking to store the[/color]
      pluggins in a subdirectory[color=blue]
      > from the application root.
      >
      > I looked on MSDN and some of the other code sites but couldn't find and[/color]
      example. Does anyone have[color=blue]
      > an example?
      >
      > Thanks,
      > Dave
      > DavidElliott@Be llSouth.net
      >[/color]


      Comment

      Working...