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); }
static UserStorage() { lockWrap = new ReaderWriterLockWrap(); dictionary = new SortedDictionary<long, UserViewModel>(); strSemaphores = new SortedDictionary<string, ManualResetEvent>(); numSemaphores = new SortedDictionary<long, ManualResetEvent>(); }