private async Task SyncDirectoryAccounts() { IndicatorADAccount = true; bool result = await AD.Connect().ConfigureAwait(false); if (result) { await AD.Accounts.Load().ConfigureAwait(false); } IndicatorADAccount = false; }
private async Task TestConnection() { ShowConnectIndicator = true; await Task.Run(async() => { bool result = await state.Connect().ConfigureAwait(false); if (!result) { ConnectIcon = PackIconKind.CloudOffOutline; } else { ConnectIcon = PackIconKind.CloudTick; } }).ConfigureAwait(false); ShowConnectIndicator = false; }