C# Class Config.Net.Azure.AzureKeyVaultConfigStore

Inheritance: IConfigStore
Show file Open project: aloneguid/config

Public Methods

Method Description
AzureKeyVaultConfigStore ( Uri vaultUri, string azureAadClientId, string azureAadClientSecret ) : System
Dispose ( ) : void
GetAccessToken ( string authority, string resource, string scope ) : Task

Gets the access token

Read ( string key ) : string
Write ( string key, string value ) : void

Private Methods

Method Description
GetHttpClient ( ) : HttpClient

Create an HttpClient object that optionally includes logic to override the HOST header field for advanced testing purposes.

Method Details

AzureKeyVaultConfigStore() public method

public AzureKeyVaultConfigStore ( Uri vaultUri, string azureAadClientId, string azureAadClientSecret ) : System
vaultUri System.Uri
azureAadClientId string
azureAadClientSecret string
return System

Dispose() public method

public Dispose ( ) : void
return void

GetAccessToken() public method

Gets the access token
public GetAccessToken ( string authority, string resource, string scope ) : Task
authority string Authority
resource string Resource
scope string scope
return Task

Read() public method

public Read ( string key ) : string
key string
return string

Write() public method

public Write ( string key, string value ) : void
key string
value string
return void