PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/examples/ioc/CarLibrary4/OldEngine.cs

http://github.com/philiplaureano/LinFu
C# | 27 lines | 23 code | 4 blank | 0 comment | 0 complexity | 092180d25b6100efccdc9e3469ace6d1 MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using CarLibrary3;
 6using LinFu.IoC.Configuration;
 7
 8namespace CarLibrary4
 9{
10    [Implements(typeof(IEngine), LifecycleType.OncePerRequest, ServiceName = "OldEngine")]
11    public class OldEngine : IEngine
12    {
13        #region IEngine Members
14
15        public void Start()
16        {
17            Console.WriteLine("Old Engine Started!");
18        }
19
20        public void Stop()
21        {
22            Console.WriteLine("Old Engine Stopped!");
23        }
24
25        #endregion
26    }
27}