public IFileInfo GetFileInfo(string subpath)
        {
            //Stopwatch sw = new Stopwatch(); // Creación del Stopwatch.
            //sw.Start(); // Iniciar la medición.
            var result = new ApiFileInfo(_callVirtualPath, subpath);

            //sw.Stop();
            //Log.Information($"ApiFileProvider -> GetFileInfo {subpath} : {sw.Elapsed.ToString("hh\\:mm\\:ss\\.fff")}\n");
            return(result.Exists ? result as IFileInfo : new NotFoundFileInfo(subpath));
        }
Пример #2
0
        public IFileInfo GetFileInfo(string subpath)
        {
            var result = new ApiFileInfo(_callVirtualPath, subpath);

            return(result.Exists ? result as IFileInfo : new NotFoundFileInfo(subpath));
        }