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

GetAbsoluteUrl() public méthode

public GetAbsoluteUrl ( string relativeUrl ) : string
relativeUrl string
Résultat string
        public string GetAbsoluteUrl(string relativeUrl)
        {
            if (relativeUrl == null)
            {
                throw new ArgumentNullException("relativeUrl");
            }
            var retVal = relativeUrl;
            if (!relativeUrl.IsAbsoluteUrl())
            {
                retVal = _basePublicUrl + "/" + relativeUrl.TrimStart('/').TrimEnd('/');
            }
            return new Uri(retVal).ToString();
        }