PageRenderTime 32ms CodeModel.GetById 28ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/ioc/Extensibility/SamplePlugin/ExamplePlugin.cs

http://github.com/philiplaureano/LinFu
C# | 28 lines | 22 code | 4 blank | 2 comment | 0 complexity | 19022386e64aef31e00b088b27bfd943 MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Text;
 4using LinFu.IoC.Interfaces;
 5using LinFu.Reflection;
 6
 7
 8namespace SamplePlugin
 9{
10    [LoaderPlugin]
11    public class ExamplePlugin : ILoaderPlugin<IServiceContainer>
12    {
13        #region ILoaderPlugin Members
14
15        public void BeginLoad(IServiceContainer container)
16        {
17            // Do something useful here
18            Console.WriteLine("Load started");
19        }
20        public void EndLoad(IServiceContainer container)
21        {
22            // Do something useful here too
23            Console.WriteLine("Load completed");
24        }
25
26        #endregion
27    }
28}