public string AwakeThread() { ReceiptThread.AwakenThread(); int cacheQueue = QueueCache.GetCacheLength(); return(JsonConvert.SerializeObject(new { cacheQueue = cacheQueue })); }
public string GetCacheCount() { Dictionary <string, CacheInfo> dic = MessageCache.GetAllMessageCaches(); int cache501 = dic.Where(e => e.Key.IndexOf("501") > -1).Count(); int cache503R = dic.Where(e => e.Key.IndexOf("503R") > -1).Count(); int cache601 = dic.Where(e => e.Key.IndexOf("601") > -1).Count(); int cacheQueue = QueueCache.GetCacheLength(); //int cacheFile = Fil return(JsonConvert.SerializeObject(new { cache501 = cache501, cache503R = cache503R, cache601 = cache601, cacheQueue = cacheQueue })); }
public int ClearFileCache() { ReceiptThread.AwakenThread(); return(QueueCache.GetCacheLength()); }