public string AwakeThread()
        {
            ReceiptThread.AwakenThread();
            int cacheQueue = QueueCache.GetCacheLength();

            return(JsonConvert.SerializeObject(new
            {
                cacheQueue = cacheQueue
            }));
        }
 public int ClearFileCache()
 {
     ReceiptThread.AwakenThread();
     return(QueueCache.GetCacheLength());
 }