/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

  1. using LinFu.IoC.Configuration;
  2. using LinFu.IoC.Interfaces;
  3. namespace SampleLibrary
  4. {
  5. [Factory(typeof(ISampleService))]
  6. public class SampleFactory : IFactory
  7. {
  8. public object CreateInstance(IFactoryRequest request)
  9. {
  10. return new SampleClass();
  11. }
  12. }
  13. }