PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/src/SampleLibrary/SampleFactory.cs

http://github.com/philiplaureano/LinFu
C# | 19 lines | 16 code | 3 blank | 0 comment | 0 complexity | e71813f932243a3bd78a9a70b251f2b6 MD5 | raw file
 1using System;
 2using LinFu.IoC.Configuration;
 3using LinFu.IoC.Interfaces;
 4
 5namespace SampleLibrary
 6{
 7    [Factory(typeof(ISampleService))]
 8    public class SampleFactory : IFactory
 9    {
10        #region IFactory Members
11
12        public object CreateInstance(Type serviceType, IContainer container)
13        {
14            return new SampleClass();
15        }
16
17        #endregion
18    }
19}