Framework/Managers/ConfigurationManager.ps1
Set-StrictMode -Version Latest # # ConfigManager.ps1 # class ConfigurationManager { hidden static [AzSKConfig] GetAzSKConfigData() { return [AzSKConfig]::GetInstance([ConfigurationManager]::GetAzSKSettings().UseOnlinePolicyStore, [ConfigurationManager]::GetAzSKSettings().OnlinePolicyStoreUrl, [ConfigurationManager]::GetAzSKSettings().EnableAADAuthForOnlinePolicyStore) } hidden static [AzSKSettings] GetAzSKSettings() { return [AzSKSettings]::GetInstance() } hidden static [AzSKSettings] GetLocalAzSKSettings() { return [AzSKSettings]::GetLocalInstance() } hidden static [AzSKSettings] UpdateAzSKSettings([AzSKSettings] $localSettings) { return [AzSKSettings]::Update($localSettings) } hidden static [SVTConfig] GetSVTConfig([string] $fileName) { return [SVTConfig]::LoadServerConfigFile($fileName, [ConfigurationManager]::GetAzSKSettings().UseOnlinePolicyStore, [ConfigurationManager]::GetAzSKSettings().OnlinePolicyStoreUrl, [ConfigurationManager]::GetAzSKSettings().EnableAADAuthForOnlinePolicyStore); } hidden static [PSObject] LoadServerConfigFile([string] $fileName) { return [ConfigurationHelper]::LoadServerConfigFile($fileName, [ConfigurationManager]::GetAzSKSettings().UseOnlinePolicyStore, [ConfigurationManager]::GetAzSKSettings().OnlinePolicyStoreUrl, [ConfigurationManager]::GetAzSKSettings().EnableAADAuthForOnlinePolicyStore); } } |