PageRenderTime 164ms CodeModel.GetById 101ms app.highlight 1ms RepoModel.GetById 61ms app.codeStats 0ms

/examples/ioc/Extensibility/Program.cs

http://github.com/philiplaureano/LinFu
C# | 23 lines | 20 code | 3 blank | 0 comment | 0 complexity | ad0eec009b9d6ebc0432af91f0d0aa55 MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Text;
 4using LinFu.IoC;
 5using LinFu.IoC.Configuration;
 6using LinFu.IoC.Interfaces;
 7
 8namespace Extensibility
 9{
10    class Program
11    {
12        static void Main(string[] args)
13        {
14            string directory = AppDomain.CurrentDomain.BaseDirectory;
15            IServiceContainer container = new ServiceContainer();
16
17            container.LoadFrom(directory, "*.dll");
18
19            Console.WriteLine("Press ENTER to continue...");
20            Console.ReadLine();
21        }
22    }
23}