Example #1
0
        public static MyMemoryCache CreateNew(CacheEntryRemovedCallback RemovedCallback)
        {
            var cache = new MyMemoryCache(Guid.NewGuid().ToString());

            cache.RemovedCallback = RemovedCallback;
            return(cache);
        }
Example #2
0
 public SubmitSmsMatchPool(int queueLength, int timeOutMs)
 {
     QueueMaxLength = queueLength;
     TimeOutMs      = timeOutMs;
     cache          = MyMemoryCache.CreateNew(RemovedCallback);
 }