コード例 #1
0
        public string AwakeThread()
        {
            ReceiptThread.AwakenThread();
            int cacheQueue = QueueCache.GetCacheLength();

            return(JsonConvert.SerializeObject(new
            {
                cacheQueue = cacheQueue
            }));
        }
コード例 #2
0
        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 }));
        }
コード例 #3
0
 public int ClearFileCache()
 {
     ReceiptThread.AwakenThread();
     return(QueueCache.GetCacheLength());
 }