コード例 #1
0
ファイル: ImageCacheStorage.cs プロジェクト: c0a5tar/Mystique
 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
ファイル: UserStorage.cs プロジェクト: deflis/Mystique
 static UserStorage()
 {
     lockWrap = new ReaderWriterLockWrap();
     dictionary = new Dictionary<string, UserViewModel>();
     semaphores = new Dictionary<string, ManualResetEvent>();
 }