/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

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