private async Task SyncDirectoryAccounts()
        {
            IndicatorADAccount = true;
            bool result = await AD.Connect().ConfigureAwait(false);

            if (result)
            {
                await AD.Accounts.Load().ConfigureAwait(false);
            }
            IndicatorADAccount = false;
        }
示例#2
0
        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;
        }