예제 #1
0
 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);
 }
예제 #2
0
 public static KeyVaultTaskSettings SetSecretName(this KeyVaultTaskSettings keyVaultSettings, string secretName)
 {
     keyVaultSettings            = keyVaultSettings.NewInstance();
     keyVaultSettings.SecretName = secretName;
     return(keyVaultSettings);
 }
예제 #3
0
 public static KeyVaultTaskSettings SetVaultBaseUrl(this KeyVaultTaskSettings keyVaultSettings, string vaultBaseUrl)
 {
     keyVaultSettings = keyVaultSettings.NewInstance();
     keyVaultSettings.VaultBaseUrl = vaultBaseUrl;
     return(keyVaultSettings);
 }
예제 #4
0
 public static KeyVaultTaskSettings SetClientSecret(this KeyVaultTaskSettings keyVaultSettings, string clientSecret)
 {
     keyVaultSettings = keyVaultSettings.NewInstance();
     keyVaultSettings.ClientSecret = clientSecret;
     return(keyVaultSettings);
 }