/src/SampleLibrary/IOC/SampleClassWithInjectionMethod.cs
http://github.com/philiplaureano/LinFu · C# · 23 lines · 18 code · 5 blank · 0 comment · 0 complexity · f80296ff343acafaef2a030483d95568 MD5 · raw file
- using System;
- using LinFu.IoC.Configuration;
- namespace SampleLibrary.IOC
- {
- public class SampleClassWithInjectionMethod : ISampleService
- {
- public ISampleService Property { get; private set; }
- public void DoSomething()
- {
- throw new NotImplementedException();
- }
- [Inject]
- public void DoSomething(ISampleService sample)
- {
- Property = sample;
- }
- }
- }