PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1namespace SampleLibrary.IOC
 2{
 3    public class SampleLazyService : ISampleService
 4    {
 5        public SampleLazyService()
 6        {
 7            IsInitialized = true;
 8        }
 9
10        public static bool IsInitialized { get; private set; }
11
12
13        public void DoSomething()
14        {
15            IsInitialized = true;
16        }
17
18
19        public static void Reset()
20        {
21            IsInitialized = false;
22        }
23    }
24}