C# Class AccidentalFish.ApplicationSupport.Azure.Bootstrapper

Registers Azure specific implementations of interfaces exposed by AccidentalFish.ApplicationSupport.Core
Show file Open project: JamesRandall/AccidentalFish.ApplicationSupport

Public Methods

Method Description
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.)

Method Details

UseAsyncKeyVaultApplicationConfiguration() public static method

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.
return IDependencyResolver

UseAzure() public static method

public static UseAzure ( this dependencyResolver ) : IDependencyResolver
dependencyResolver this
return IDependencyResolver

UseAzure() public static method

public static UseAzure ( this dependencyResolver, bool forceAppConfig, bool useAzureSqlDatabaseConfiguration, bool useLegacyQueueSerializer, bool registerEmailAlertSender ) : IDependencyResolver
dependencyResolver this
forceAppConfig bool
useAzureSqlDatabaseConfiguration bool
useLegacyQueueSerializer bool
registerEmailAlertSender bool
return IDependencyResolver

UseKeyVaultApplicationConfiguration() public static method

Use key vault for application configuration. This provides a secure way of retrieving secrets at runtime (connection strings, passwords etc.)
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.
return IDependencyResolver