/src/SampleLibrary/SampleStronglyTypedFactory.cs
http://github.com/philiplaureano/LinFu · C# · 18 lines · 15 code · 3 blank · 0 comment · 0 complexity · e97b46f4146f872551c8b599ca069d71 MD5 · raw file
- using LinFu.IoC.Configuration;
- using LinFu.IoC.Interfaces;
- namespace SampleLibrary
- {
- [Factory(typeof (ISampleService))]
- public class SampleStronglyTypedFactory : IFactory<ISampleService>
- {
- #region IFactory<ISampleService> Members
- public ISampleService CreateInstance(IContainer container)
- {
- return new SampleClass();
- }
- #endregion
- }
- }