Framework/Managers/ConfigurationManager.ps1
Set-StrictMode -Version Latest # # ConfigManager.ps1 # class ConfigurationManager { hidden static [AzSdkConfig] GetAzSdkConfigData() { return [AzSdkConfig]::GetInstance([ConfigurationManager]::GetAzSdkSettings().UseOnlinePolicyStore, [ConfigurationManager]::GetAzSdkSettings().OnlinePolicyStoreUrl, [ConfigurationManager]::GetAzSdkSettings().EnableAADAuthForOnlinePolicyStore) } hidden static [AzSdkSettings] GetAzSdkSettings() { return [AzSdkSettings]::GetInstance() } hidden static [AzSdkSettings] GetLocalAzSdkSettings() { return [AzSdkSettings]::GetLocalInstance() } hidden static [AzSdkSettings] UpdateAzSdkSettings([AzSdkSettings] $localSettings) { return [AzSdkSettings]::Update($localSettings) } hidden static [SVTConfig] GetSVTConfig([string] $fileName) { return [SVTConfig]::LoadServerConfigFile($fileName, [ConfigurationManager]::GetAzSdkSettings().UseOnlinePolicyStore, [ConfigurationManager]::GetAzSdkSettings().OnlinePolicyStoreUrl, [ConfigurationManager]::GetAzSdkSettings().EnableAADAuthForOnlinePolicyStore); } hidden static [PSObject] LoadServerConfigFile([string] $fileName) { return [ConfigurationHelper]::LoadServerConfigFile($fileName, [ConfigurationManager]::GetAzSdkSettings().UseOnlinePolicyStore, [ConfigurationManager]::GetAzSdkSettings().OnlinePolicyStoreUrl, [ConfigurationManager]::GetAzSdkSettings().EnableAADAuthForOnlinePolicyStore); } } |