Bombsquad.DynamicMedia.Implementations.Storage.FileSystemStorageBackend.TryGetStorageFile C# (CSharp) Метод

TryGetStorageFile() публичный Метод

public TryGetStorageFile ( string path, IStorageFile &storageFile ) : bool
path string
storageFile IStorageFile
Результат bool
        public bool TryGetStorageFile(string path, out IStorageFile storageFile)
        {
            FileInfo sourceImagePath;
            if (!TryFindPhysicalFile(path, out sourceImagePath))
            {
                storageFile = null;
                return false;
            }

            var eTag = m_fileInfoETagCalculator.CalculateETag( sourceImagePath );
            storageFile = new StorageFile( sourceImagePath, eTag );
            return true;
        }