Exemple #1
0
 static ImageCacheStorage()
 {
     lockWrap = new ReaderWriterLockWrap();
     imageDataDictionary = new Dictionary<Uri, KeyValuePair<BitmapImage, DateTime>>();
     semaphores = new Dictionary<Uri, ManualResetEvent>();
     gcTimer = new Timer(GCCacheStorage, null, Setting.Instance.KernelProperty.ImageCacheGCInitialDelay, Setting.Instance.KernelProperty.ImageCacheGCInterval);
 }
Exemple #2
0
 static UserStorage()
 {
     lockWrap = new ReaderWriterLockWrap();
     dictionary = new SortedDictionary<long, UserViewModel>();
     strSemaphores = new SortedDictionary<string, ManualResetEvent>();
     numSemaphores = new SortedDictionary<long, ManualResetEvent>();
 }