/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

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using LinFu.IoC.Interfaces;
  5. using LinFu.Reflection;
  6. namespace SamplePlugin
  7. {
  8. [LoaderPlugin]
  9. public class ExamplePlugin : ILoaderPlugin<IServiceContainer>
  10. {
  11. #region ILoaderPlugin Members
  12. public void BeginLoad(IServiceContainer container)
  13. {
  14. // Do something useful here
  15. Console.WriteLine("Load started");
  16. }
  17. public void EndLoad(IServiceContainer container)
  18. {
  19. // Do something useful here too
  20. Console.WriteLine("Load completed");
  21. }
  22. #endregion
  23. }
  24. }