PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/SampleLibrary/IOC/SampleStronglyTypedFactoryWithNamedService.cs

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