VirtoCommerce.Platform.Data.Asset.FileSystemBlobProvider.OpenReadOnly C# (CSharp) Метод

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

Open blob by relative or absolute url
public OpenReadOnly ( string url ) : Stream
url string
Результат Stream
        public Stream OpenReadOnly(string url)
        {
            if (string.IsNullOrEmpty(url))
                throw new ArgumentNullException("url");

            var filePath = GetAbsoluteStoragePathFromUrl(url);

            var stream = LoadFile(filePath);

            return stream;
        }