public static MyMemoryCache CreateNew(CacheEntryRemovedCallback RemovedCallback) { var cache = new MyMemoryCache(Guid.NewGuid().ToString()); cache.RemovedCallback = RemovedCallback; return(cache); }
public SubmitSmsMatchPool(int queueLength, int timeOutMs) { QueueMaxLength = queueLength; TimeOutMs = timeOutMs; cache = MyMemoryCache.CreateNew(RemovedCallback); }