PageRenderTime 121ms CodeModel.GetById 60ms app.highlight 1ms RepoModel.GetById 59ms app.codeStats 0ms

/src/SampleLibrary/IOC/SampleStronglyTypedFactory.cs

http://github.com/philiplaureano/LinFu
C# | 14 lines | 13 code | 1 blank | 0 comment | 0 complexity | 976a8e4b63d4f9af8730a06865c8b8f2 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        public ISampleService CreateInstance(IFactoryRequest request)
10        {
11            return new SampleClass();
12        }
13    }
14}