PageRenderTime 135ms CodeModel.GetById 131ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/ioc/PropertyInjectionSample/CarLibrary2/DeadEngine.cs

http://github.com/philiplaureano/LinFu
C# | 27 lines | 23 code | 4 blank | 0 comment | 0 complexity | a5dd77479580760094c8279efbd9d803 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 CarLibrary2
 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}