示例#1
0
 static ImageCacheStorage()
 {
     lockWrap = new ReaderWriterLockWrap();
     imageDataDictionary = new Dictionary<Uri, KeyValuePair<BitmapImage, DateTime>>();
     semaphores = new Dictionary<Uri, ManualResetEvent>();
     gcTimer = new Timer(GC, null, Setting.Instance.KernelProperty.ImageGCInitialDelay, Setting.Instance.KernelProperty.ImageGCInterval);
 }
示例#2
0
 static UserStorage()
 {
     lockWrap = new ReaderWriterLockWrap();
     dictionary = new Dictionary<string, UserViewModel>();
     semaphores = new Dictionary<string, ManualResetEvent>();
 }