/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
- namespace SampleLibrary.IOC
- {
- public class SampleLazyService : ISampleService
- {
- public SampleLazyService()
- {
- IsInitialized = true;
- }
- public static bool IsInitialized { get; private set; }
- public void DoSomething()
- {
- IsInitialized = true;
- }
- public static void Reset()
- {
- IsInitialized = false;
- }
- }
- }