VirtoCommerce.Platform.Data.Asset.FileSystemBlobProvider.OpenReadOnly C# (CSharp) Méthode

OpenReadOnly() public méthode

Open blob by relative or absolute url
public OpenReadOnly ( string url ) : Stream
url string
Résultat Stream
        public Stream OpenReadOnly(string url)
        {
            if (string.IsNullOrEmpty(url))
                throw new ArgumentNullException("url");

            var filePath = GetAbsoluteStoragePathFromUrl(url);

            var stream = LoadFile(filePath);

            return stream;
        }