/src/SampleLibrary/IOC/SampleClassWithAdditionalArgument.cs

http://github.com/philiplaureano/LinFu · C# · 18 lines · 14 code · 2 blank · 2 comment · 0 complexity · e9661af914d0c0c0f55627b256fabccd MD5 · raw file

  1. namespace SampleLibrary.IOC
  2. {
  3. public class SampleClassWithAdditionalArgument
  4. {
  5. // This is just a dummy constructor used to confuse
  6. // the resolver
  7. public SampleClassWithAdditionalArgument(ISampleService arg1)
  8. {
  9. }
  10. public SampleClassWithAdditionalArgument(ISampleService arg1, int arg2)
  11. {
  12. Argument = arg2;
  13. }
  14. public int Argument { get; }
  15. }
  16. }