Пример #1
0
        internal static HttpFile CreateFromFileInfo(FileInfo file)
        {
            HttpFile result = new HttpFile();

            result.FileName      = file.FullName;
            result.ContentLength = (int)file.Length;
            result.FileBody      = RetryFile.ReadAllBytes(file.FullName);
            return(result);
        }