PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/SampleLibrary/IOC/SampleServiceOfT.cs

http://github.com/philiplaureano/LinFu
C# | 38 lines | 32 code | 6 blank | 0 comment | 0 complexity | 1e88ac198337f6793ff21fe7cf28658e MD5 | raw file
 1using LinFu.IoC.Configuration;
 2
 3namespace SampleLibrary.IOC
 4{
 5    [Implements(typeof(ISampleService<>), LifecycleType.OncePerRequest)]
 6    public class SampleService<T> : ISampleService<T>
 7    {
 8        public SampleService(string text, bool b)
 9        {
10            Text = text;
11            Bool = b;
12        }
13
14        public SampleService(int i, bool b)
15        {
16            Int = i;
17            Bool = b;
18        }
19
20        public SampleService(int i, string text)
21        {
22            Int = i;
23            Text = text;
24        }
25
26        public SampleService(int i, string text, bool b)
27        {
28            Int = i;
29            Text = text;
30            Bool = b;
31        }
32
33
34        public int Int { get; set; }
35        public string Text { get; set; }
36        public bool Bool { get; set; }
37    }
38}