/src/SampleLibrary/IOC/SampleLazyService.cs

http://github.com/philiplaureano/LinFu · C# · 24 lines · 19 code · 5 blank · 0 comment · 0 complexity · 7ea1c93e69adb7b974122396c2725646 MD5 · raw file

  1. namespace SampleLibrary.IOC
  2. {
  3. public class SampleLazyService : ISampleService
  4. {
  5. public SampleLazyService()
  6. {
  7. IsInitialized = true;
  8. }
  9. public static bool IsInitialized { get; private set; }
  10. public void DoSomething()
  11. {
  12. IsInitialized = true;
  13. }
  14. public static void Reset()
  15. {
  16. IsInitialized = false;
  17. }
  18. }
  19. }