/examples/ioc/ConstructorInjection/CarLibrary3/DeadEngine.cs
http://github.com/philiplaureano/LinFu · C# · 27 lines · 23 code · 4 blank · 0 comment · 0 complexity · d803bce8090c4a60b58ac98252ca5c8b MD5 · raw file
- using System;
- using System.Collections.Generic;
- using System.Text;
- using LinFu.IoC;
- using LinFu.IoC.Configuration;
- using LinFu.IoC.Interfaces;
- namespace CarLibrary3
- {
- [Implements(typeof(IEngine), LifecycleType.OncePerRequest)]
- public class DeadEngine : IEngine
- {
- #region IEngine Members
- public void Start()
- {
- Console.WriteLine("I can't move!");
- }
- public void Stop()
- {
- Console.WriteLine("The engine has already stopped! It's dead!");
- }
- #endregion
- }
- }