C# Class PurgarNET.AAConnector.Console.ConfigHandler

Inheritance: PurgarNET.AAConnector.Shared.HandlerBase, INotifyPropertyChanged
Exibir arquivo Open project: jurepurgar/aa-scsm-connector

Public Methods

Method Description
AssureAzureAdAppAndPrincipal ( GraphClient cl, System.Guid tenantId ) : Task
AssureConfigManagementPack ( ) : ManagementPack
CommitSettings ( ) : void
ConfigHandler ( ) : Microsoft.EnterpriseManagement
Connect ( AutomationAccountInfo accountInfo, System.TimeSpan credValidity ) : Task
Disconnect ( ) : System.Threading.Tasks.Task
Initialize ( Microsoft emg ) : void
Initialize ( string serverName = null ) : void
RefreshAccounts ( ) : System.Threading.Tasks.Task
RefreshSettings ( ) : void
RenewServiceCredential ( System.TimeSpan credValidity ) : System.Threading.Tasks.Task
ValidityToTimeSpan ( string validity ) : System.TimeSpan

Private Methods

Method Description
NotifyPropertyChanged ( string propName ) : void
RandomString ( int length = 30 ) : string
RemoveServiceCredential ( GraphClient cl, ManagementPack configMp ) : System.Threading.Tasks.Task
RenewServiceCredential ( GraphClient cl, ManagementPack configMp, AdApplication app, System.TimeSpan credValidity ) : System.Threading.Tasks.Task
ShowError ( Exception e ) : void
client_AuthorizationCodeRequired ( object sender, Shared e ) : void

Method Details

AssureAzureAdAppAndPrincipal() public method

public AssureAzureAdAppAndPrincipal ( GraphClient cl, System.Guid tenantId ) : Task
cl PurgarNET.AAConnector.Shared.ConfigClient.GraphClient
tenantId System.Guid
return Task

AssureConfigManagementPack() public method

public AssureConfigManagementPack ( ) : ManagementPack
return ManagementPack

CommitSettings() public method

public CommitSettings ( ) : void
return void

ConfigHandler() public method

public ConfigHandler ( ) : Microsoft.EnterpriseManagement
return Microsoft.EnterpriseManagement

Connect() public method

public Connect ( AutomationAccountInfo accountInfo, System.TimeSpan credValidity ) : Task
accountInfo AutomationAccountInfo
credValidity System.TimeSpan
return Task

Disconnect() public method

public Disconnect ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Initialize() public method

public Initialize ( Microsoft emg ) : void
emg Microsoft
return void

Initialize() public method

public Initialize ( string serverName = null ) : void
serverName string
return void

RefreshAccounts() public method

public RefreshAccounts ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

RefreshSettings() public method

public RefreshSettings ( ) : void
return void

RenewServiceCredential() public method

public RenewServiceCredential ( System.TimeSpan credValidity ) : System.Threading.Tasks.Task
credValidity System.TimeSpan
return System.Threading.Tasks.Task

ValidityToTimeSpan() public static method

public static ValidityToTimeSpan ( string validity ) : System.TimeSpan
validity string
return System.TimeSpan