PageRenderTime 24ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/SampleLibrary/IOC/SampleFactory.cs

http://github.com/philiplaureano/LinFu
C# | 14 lines | 13 code | 1 blank | 0 comment | 0 complexity | 62e0d6a85d84637e75e0e0a2ce2e5b3e MD5 | raw file
 1using LinFu.IoC.Configuration;
 2using LinFu.IoC.Interfaces;
 3
 4namespace SampleLibrary
 5{
 6    [Factory(typeof(ISampleService))]
 7    public class SampleFactory : IFactory
 8    {
 9        public object CreateInstance(IFactoryRequest request)
10        {
11            return new SampleClass();
12        }
13    }
14}