/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
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using CarLibrary3;
- using LinFu.IoC.Configuration;
- namespace CarLibrary4
- {
- [Implements(typeof(IEngine), LifecycleType.OncePerRequest, ServiceName = "OldEngine")]
- public class OldEngine : IEngine
- {
- #region IEngine Members
- public void Start()
- {
- Console.WriteLine("Old Engine Started!");
- }
- public void Stop()
- {
- Console.WriteLine("Old Engine Stopped!");
- }
- #endregion
- }
- }