BlogEngine.Core.Providers.UNCFileSystemProvider.GetFileContents C# (CSharp) Method

GetFileContents() private method

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
return FileSystem.File
        internal override FileSystem.File GetFileContents(FileSystem.File BaseFile)
        {
            var aPath = VirtualPathToUNCPath(BaseFile.FullPath);
            BaseFile.FileContents = FileToByteArray(aPath);
            return BaseFile;
        }