PageRenderTime 176ms CodeModel.GetById 72ms app.highlight 2ms RepoModel.GetById 46ms app.codeStats 0ms

/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
 1using System;
 2using LinFu.IoC.Configuration;
 3
 4namespace SampleLibrary.IOC
 5{
 6    public class SampleClassWithInjectionMethod : ISampleService
 7    {
 8        public ISampleService Property { get; private set; }
 9
10
11        public void DoSomething()
12        {
13            throw new NotImplementedException();
14        }
15
16
17        [Inject]
18        public void DoSomething(ISampleService sample)
19        {
20            Property = sample;
21        }
22    }
23}