Метод | Описание | |
---|---|---|
UseAsyncKeyVaultApplicationConfiguration ( this dependencyResolver, string clientId, string clientSecret, string vaultUri, bool useKeyVaultExclusively = false, KeyVaultConfigurationCachePolicy cachePolicy = null, bool checkIfKeyVaultKeyExistsBeforeGet = false ) : IDependencyResolver |
Use key vault for application configuration. This provides a secure way of retrieving secrets at runtime (connection strings, passwords etc.)
|
|
UseAzure ( this dependencyResolver ) : IDependencyResolver | ||
UseAzure ( this dependencyResolver, bool forceAppConfig, bool useAzureSqlDatabaseConfiguration, bool useLegacyQueueSerializer, bool registerEmailAlertSender ) : IDependencyResolver | ||
UseKeyVaultApplicationConfiguration ( this dependencyResolver, string clientId, string clientSecret, string vaultUri, bool useKeyVaultExclusively = false, bool checkIfKeyVaultKeyExistsBeforeGet = false ) : IDependencyResolver |
Use key vault for application configuration. This provides a secure way of retrieving secrets at runtime (connection strings, passwords etc.)
|
public static UseAsyncKeyVaultApplicationConfiguration ( this dependencyResolver, string clientId, string clientSecret, string vaultUri, bool useKeyVaultExclusively = false, KeyVaultConfigurationCachePolicy cachePolicy = null, bool checkIfKeyVaultKeyExistsBeforeGet = false ) : IDependencyResolver | ||
dependencyResolver | this | The dependency resolver |
clientId | string | Client ID of the Azure AD application associated with the key vault (must be granted read access to secrets) |
clientSecret | string | Client secret of the Azure AD application associated with the key vault (must be granted read access to secrets) |
vaultUri | string | The URI of the key vault e.g. https://mykeyvault.vault.azure.net |
useKeyVaultExclusively | bool | Defaults to false in which case only application keys not found in the local configuration (app settings, cscfg etc.) will be looked up in the vault. True if everything should be looked up in the vault. |
cachePolicy | KeyVaultConfigurationCachePolicy | The cache policy, null for the default policy |
checkIfKeyVaultKeyExistsBeforeGet | bool | If true then this checks if the key exists in the vault before attempting a get. This is expensive but currently helps with Powershell sync context / message pump issues. |
Результат | IDependencyResolver |
public static UseAzure ( this dependencyResolver ) : IDependencyResolver | ||
dependencyResolver | this | |
Результат | IDependencyResolver |
public static UseAzure ( this dependencyResolver, bool forceAppConfig, bool useAzureSqlDatabaseConfiguration, bool useLegacyQueueSerializer, bool registerEmailAlertSender ) : IDependencyResolver | ||
dependencyResolver | this | |
forceAppConfig | bool | |
useAzureSqlDatabaseConfiguration | bool | |
useLegacyQueueSerializer | bool | |
registerEmailAlertSender | bool | |
Результат | IDependencyResolver |
public static UseKeyVaultApplicationConfiguration ( this dependencyResolver, string clientId, string clientSecret, string vaultUri, bool useKeyVaultExclusively = false, bool checkIfKeyVaultKeyExistsBeforeGet = false ) : IDependencyResolver | ||
dependencyResolver | this | The dependency resolver |
clientId | string | Client ID of the Azure AD application associated with the key vault (must be granted read access to secrets) |
clientSecret | string | Client secret of the Azure AD application associated with the key vault (must be granted read access to secrets) |
vaultUri | string | The URI of the key vault e.g. https://mykeyvault.vault.azure.net |
useKeyVaultExclusively | bool | Defaults to false in which case only application keys not found in the local configuration (app settings, cscfg etc.) will be looked up in the vault. True if everything should be looked up in the vault. |
checkIfKeyVaultKeyExistsBeforeGet | bool | If true then this checks if the key exists in the vault before attempting a get. This is expensive but currently helps with Powershell sync context / message pump issues. |
Результат | IDependencyResolver |