Click here to Skip to main content
15,886,873 members
Articles / Programming Languages / XML

Build a Pluggable Application with IoC Container

Rate me:
Please Sign up or sign in to vote.
4.00/5 (6 votes)
7 Apr 2012CPOL3 min read 28.5K   360   30  
In this article, I will show how to build a pluggable application with IoC container.
<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="StructureMap" type="StructureMap.Configuration.StructureMapConfigurationSection,StructureMap"/>
  </configSections>

  <StructureMap>
    <PluginFamily Type="OutputService.IOutputService" Assembly="OutputService" DefaultKey="Default">
      <Plugin Type="FileOutput.FileOutput" Assembly="FileOutput" ConcreteKey="Default"/>
      <Plugin Type="ConsoleOutput.ConsoleOutput" Assembly="ConsoleOutput" ConcreteKey="Console"/>
    </PluginFamily>
  </StructureMap>

<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Senior Software Developer from New Jersey, USA

Have 15+ years experience on enterprise application development with various technologies.

Comments and Discussions