/examples/ioc/CarLibrary4/DeadEngine.cs

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

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using LinFu.IoC;
  5. using LinFu.IoC.Configuration;
  6. using LinFu.IoC.Interfaces;
  7. namespace CarLibrary3
  8. {
  9. [Implements(typeof(IEngine), LifecycleType.OncePerRequest, ServiceName="DeadEngine")]
  10. public class DeadEngine : IEngine
  11. {
  12. #region IEngine Members
  13. public void Start()
  14. {
  15. Console.WriteLine("I can't move!");
  16. }
  17. public void Stop()
  18. {
  19. Console.WriteLine("The engine has already stopped! It's dead!");
  20. }
  21. #endregion
  22. }
  23. }