/src/SampleLibrary/SampleStronglyTypedFactory.cs
C# | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | e97b46f4146f872551c8b599ca069d71 MD5 | raw file
1using LinFu.IoC.Configuration; 2using LinFu.IoC.Interfaces; 3 4namespace SampleLibrary 5{ 6 [Factory(typeof (ISampleService))] 7 public class SampleStronglyTypedFactory : IFactory<ISampleService> 8 { 9 #region IFactory<ISampleService> Members 10 11 public ISampleService CreateInstance(IContainer container) 12 { 13 return new SampleClass(); 14 } 15 16 #endregion 17 } 18}