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