/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
- 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, ServiceName="DeadEngine")]
- 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
- }
- }