BlogEngine.Core.Providers.UNCFileSystemProvider.GetFileContents C# (CSharp) 메소드

GetFileContents() 개인적인 메소드

gets the file contents via Lazy load, however in the DbProvider the Contents are loaded when the initial object is created to cut down on DbReads
private GetFileContents ( FileSystem BaseFile ) : FileSystem.File
BaseFile System.IO.FileSystem the baseFile object to fill
리턴 FileSystem.File
        internal override FileSystem.File GetFileContents(FileSystem.File BaseFile)
        {
            var aPath = VirtualPathToUNCPath(BaseFile.FullPath);
            BaseFile.FileContents = FileToByteArray(aPath);
            return BaseFile;
        }