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

/src/SampleLibrary/IOC/SampleClassWithMultipleNonServiceArgumentConstructors.cs

http://github.com/philiplaureano/LinFu
C# | 32 lines | 25 code | 5 blank | 2 comment | 0 complexity | 6a4e13de2aa0dabe732b9e6f7927e76b MD5 | raw file
 1using System;
 2using LinFu.IoC.Configuration;
 3
 4namespace SampleLibrary.IOC
 5{
 6    [Implements(typeof(ISampleService), ServiceName = "ClassWithMultipleNonServiceArgumentConstructors")]
 7    public class SampleClassWithMultipleNonServiceArgumentConstructors : ISampleService
 8    {
 9        public SampleClassWithMultipleNonServiceArgumentConstructors(string arg1)
10        {
11            // Throw an exception if the incorrect constructor is selected
12            throw new InvalidOperationException("Incorrect Constructor Selected");
13        }
14
15        public SampleClassWithMultipleNonServiceArgumentConstructors(string arg1, int arg2)
16        {
17            // Throw an exception if the incorrect constructor is selected
18            throw new InvalidOperationException("Incorrect Constructor Selected");
19        }
20
21        public SampleClassWithMultipleNonServiceArgumentConstructors(string arg1, int arg2, SampleEnum arg3,
22            decimal arg4, int arg5)
23        {
24        }
25
26
27        public void DoSomething()
28        {
29            throw new NotImplementedException();
30        }
31    }
32}