/examples/ioc/CarLibrary4/OldEngine.cs

http://github.com/philiplaureano/LinFu · C# · 27 lines · 23 code · 4 blank · 0 comment · 0 complexity · 092180d25b6100efccdc9e3469ace6d1 MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using CarLibrary3;
  6. using LinFu.IoC.Configuration;
  7. namespace CarLibrary4
  8. {
  9. [Implements(typeof(IEngine), LifecycleType.OncePerRequest, ServiceName = "OldEngine")]
  10. public class OldEngine : IEngine
  11. {
  12. #region IEngine Members
  13. public void Start()
  14. {
  15. Console.WriteLine("Old Engine Started!");
  16. }
  17. public void Stop()
  18. {
  19. Console.WriteLine("Old Engine Stopped!");
  20. }
  21. #endregion
  22. }
  23. }