protected static KeyVaultTaskSettings CreateSettings(string secretName, KeyVaultSettings keyVaultSettings)
 {
     return(new KeyVaultTaskSettings()
            .SetClientId(keyVaultSettings.ClientId)
            .SetVaultBaseUrl(keyVaultSettings.BaseUrl)
            .SetClientSecret(keyVaultSettings.Secret)
            .SetSecretName(secretName));
 }
 public KeyVaultTaskSettings(KeyVaultSettings keyVaultSettings)
 {
     ClientId     = keyVaultSettings.ClientId;
     ClientSecret = keyVaultSettings.Secret;
     VaultBaseUrl = keyVaultSettings.BaseUrl;
 }
 public static KeyVaultTaskSettings Set(this KeyVaultTaskSettings keyVaultTaskSettings, KeyVaultSettings settings)
 {
     keyVaultTaskSettings              = keyVaultTaskSettings.NewInstance();
     keyVaultTaskSettings.ClientId     = settings.ClientId;
     keyVaultTaskSettings.ClientSecret = settings.Secret;
     keyVaultTaskSettings.VaultBaseUrl = settings.BaseUrl;
     return(keyVaultTaskSettings);
 }