public Initializer(IKeyVaultClientWrapper keyVaultWrapper, AppSettings appSettings, Configuration configuration)
 {
     _localMap = new Dictionary <string, object>();
     _keyVaultClientWrapper     = keyVaultWrapper;
     _configuration             = configuration;
     _configuration.AppSettings = appSettings;
 }
Exemple #2
0
 /// <summary>
 /// Initialize a new instance of the <see cref="SasTokenProvider"/> with the given <see cref="KeyVaultSettings"/>.
 /// </summary>
 /// <param name="keyVaultWrapper">
 /// An instance of <see cref="KeyVaultClientWrapper"/> with a principal with access to the application owner key vault(s).</param>
 /// <param name="storageConfiguration">
 /// The <see cref="AzureStorageConfiguration"/> with information about the key vault and storage account formats.
 /// The formats is used to generate the actual URI and storage account names based on organisation id.
 /// </param>
 /// <param name="logger">A logger that can be used to write to a log.</param>
 public SasTokenProvider(
     IKeyVaultClientWrapper keyVaultWrapper,
     IOptions <AzureStorageConfiguration> storageConfiguration,
     ILogger <SasTokenProvider> logger)
 {
     _keyVaultWrapper      = keyVaultWrapper;
     _storageConfiguration = storageConfiguration.Value;
     _logger = logger;
 }