/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
- using System;
- using LinFu.IoC.Configuration;
- namespace SampleLibrary.IOC
- {
- [Implements(typeof(ISampleService), ServiceName = "ClassWithMultipleNonServiceArgumentConstructors")]
- public class SampleClassWithMultipleNonServiceArgumentConstructors : ISampleService
- {
- public SampleClassWithMultipleNonServiceArgumentConstructors(string arg1)
- {
- // Throw an exception if the incorrect constructor is selected
- throw new InvalidOperationException("Incorrect Constructor Selected");
- }
- public SampleClassWithMultipleNonServiceArgumentConstructors(string arg1, int arg2)
- {
- // Throw an exception if the incorrect constructor is selected
- throw new InvalidOperationException("Incorrect Constructor Selected");
- }
- public SampleClassWithMultipleNonServiceArgumentConstructors(string arg1, int arg2, SampleEnum arg3,
- decimal arg4, int arg5)
- {
- }
- public void DoSomething()
- {
- throw new NotImplementedException();
- }
- }
- }