/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
- using LinFu.IoC.Configuration;
- using LinFu.IoC.Interfaces;
- namespace SampleLibrary
- {
- [Factory(typeof(ISampleService))]
- public class SampleStronglyTypedFactory : IFactory<ISampleService>
- {
- public ISampleService CreateInstance(IFactoryRequest request)
- {
- return new SampleClass();
- }
- }
- }