Exemplo n.º 1
0
 public bool HasRequests()
 {
     lock (_timerLock)
     {
         return(_pairRequests.Any());
     }
 }
Exemplo n.º 2
0
        private void CheckFileSystem()
        {
            var cdir = _context.ServerContext.FileSystem.ApiConfigPath;

            if (_keys.Any() || !cdir.Exists)
            {
                return;
            }

            var files = cdir.GetFiles("*.api.txt", SearchOption.AllDirectories);

            if (!files.Any())
            {
                return;
            }

            CollectFilesystem(files);
        }