/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

  1. using LinFu.IoC.Configuration;
  2. namespace SampleLibrary.IOC
  3. {
  4. [Implements(typeof(ISampleService<>), LifecycleType.OncePerRequest)]
  5. public class SampleService<T> : ISampleService<T>
  6. {
  7. public SampleService(string text, bool b)
  8. {
  9. Text = text;
  10. Bool = b;
  11. }
  12. public SampleService(int i, bool b)
  13. {
  14. Int = i;
  15. Bool = b;
  16. }
  17. public SampleService(int i, string text)
  18. {
  19. Int = i;
  20. Text = text;
  21. }
  22. public SampleService(int i, string text, bool b)
  23. {
  24. Int = i;
  25. Text = text;
  26. Bool = b;
  27. }
  28. public int Int { get; set; }
  29. public string Text { get; set; }
  30. public bool Bool { get; set; }
  31. }
  32. }