Пример #1
0
        public static Uri GetVaultUri(this VaultConfig vaultConfig)
        {
            if (vaultConfig == null)
            {
                throw new ArgumentNullException(nameof(vaultConfig));
            }

            return(new Uri(vaultConfig.Url));
        }
Пример #2
0
        public static Uri GetVaultUri(this VaultConfig vaultConfig, string relativeUri)
        {
            if (vaultConfig == null)
            {
                throw new ArgumentNullException(nameof(vaultConfig));
            }

            if (string.IsNullOrWhiteSpace(relativeUri))
            {
                throw new ArgumentNullException(nameof(relativeUri));
            }

            return(new Uri(vaultConfig.GetVaultUri(), relativeUri));
        }