/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
- using LinFu.IoC.Configuration;
- namespace SampleLibrary.IOC
- {
- [Implements(typeof(ISampleService<>), LifecycleType.OncePerRequest)]
- public class SampleService<T> : ISampleService<T>
- {
- public SampleService(string text, bool b)
- {
- Text = text;
- Bool = b;
- }
- public SampleService(int i, bool b)
- {
- Int = i;
- Bool = b;
- }
- public SampleService(int i, string text)
- {
- Int = i;
- Text = text;
- }
- public SampleService(int i, string text, bool b)
- {
- Int = i;
- Text = text;
- Bool = b;
- }
- public int Int { get; set; }
- public string Text { get; set; }
- public bool Bool { get; set; }
- }
- }