PageRenderTime 278ms CodeModel.GetById 121ms app.highlight 1ms RepoModel.GetById 119ms app.codeStats 1ms

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